~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/core/gimpscanconvert.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995-1999 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
20
20
#define __GIMP_SCAN_CONVERT_H__
21
21
 
22
22
 
23
 
/* Create a new scan conversion context.
24
 
 */
25
23
GimpScanConvert * gimp_scan_convert_new        (void);
26
24
 
27
 
void              gimp_scan_convert_free       (GimpScanConvert *scan_converter);
28
 
 
29
 
/* set the Pixel-Ratio (width / height) for the pixels.
30
 
 */
31
 
void         gimp_scan_convert_set_pixel_ratio (GimpScanConvert *sc,
 
25
void      gimp_scan_convert_free               (GimpScanConvert *sc);
 
26
void      gimp_scan_convert_set_pixel_ratio    (GimpScanConvert *sc,
32
27
                                                gdouble          ratio_xy);
33
 
 
34
 
/* Add "npoints" from "pointlist" to the polygon currently being
35
 
 * described by "scan_converter". DEPRECATED.
36
 
 */
37
 
void              gimp_scan_convert_add_points (GimpScanConvert *scan_converter,
 
28
void      gimp_scan_convert_set_clip_rectangle (GimpScanConvert *sc,
 
29
                                                gint             x,
 
30
                                                gint             y,
 
31
                                                gint             width,
 
32
                                                gint             height);
 
33
void      gimp_scan_convert_add_points         (GimpScanConvert *sc,
38
34
                                                guint            n_points,
39
35
                                                GimpVector2     *points,
40
36
                                                gboolean         new_polygon);
41
 
 
42
 
/* Add a polygon with "npoints" "points" that may be open or closed.
43
 
 * It is not recommended to mix gimp_scan_convert_add_polyline with
44
 
 * gimp_scan_convert_add_points.
45
 
 *
46
 
 * Please note that you should use gimp_scan_convert_stroke() if you
47
 
 * specify open polygons.
48
 
 */
49
 
void              gimp_scan_convert_add_polyline (GimpScanConvert *sc,
50
 
                                                  guint            n_points,
51
 
                                                  GimpVector2     *points,
52
 
                                                  gboolean         closed);
53
 
 
54
 
/* Stroke the content of a GimpScanConvert. The next
55
 
 * gimp_scan_convert_to_channel will result in the outline of the polygon
56
 
 * defined with the commands above.
57
 
 *
58
 
 * You cannot add additional polygons after this command.
59
 
 *
60
 
 * Note that if you have nonstandard resolution, "width" gives the
61
 
 * width (in pixels) for a vertical stroke, i.e. use the X-resolution
62
 
 * to calculate the width of a stroke when operating with real world
63
 
 * units.
64
 
 */
65
 
 
66
 
void              gimp_scan_convert_stroke     (GimpScanConvert *sc,
 
37
void      gimp_scan_convert_add_polyline       (GimpScanConvert *sc,
 
38
                                                guint            n_points,
 
39
                                                GimpVector2     *points,
 
40
                                                gboolean         closed);
 
41
void      gimp_scan_convert_stroke             (GimpScanConvert *sc,
67
42
                                                gdouble          width,
68
43
                                                GimpJoinStyle    join,
69
44
                                                GimpCapStyle     cap,
70
45
                                                gdouble          miter,
71
46
                                                gdouble          dash_offset,
72
47
                                                GArray          *dash_info);
73
 
 
74
 
 
75
 
/* This is a more low level version. Expects a tile manager of depth 1.
76
 
 *
77
 
 * You cannot add additional polygons after this command.
78
 
 */
79
 
void              gimp_scan_convert_render     (GimpScanConvert *scan_converter,
 
48
void      gimp_scan_convert_render             (GimpScanConvert *sc,
80
49
                                                TileManager     *tile_manager,
81
50
                                                gint             off_x,
82
51
                                                gint             off_y,
83
52
                                                gboolean         antialias);
 
53
void      gimp_scan_convert_render_value       (GimpScanConvert *sc,
 
54
                                                TileManager     *tile_manager,
 
55
                                                gint             off_x,
 
56
                                                gint             off_y,
 
57
                                                guchar           value);
 
58
void      gimp_scan_convert_compose            (GimpScanConvert *sc,
 
59
                                                GimpChannelOps   op,
 
60
                                                TileManager     *tile_manager,
 
61
                                                gint             off_x,
 
62
                                                gint             off_y);
84
63
 
85
64
 
86
65
#endif /* __GIMP_SCAN_CONVERT_H__ */