20
20
#define __GIMP_SCAN_CONVERT_H__
23
/* Create a new scan conversion context.
25
23
GimpScanConvert * gimp_scan_convert_new (void);
27
void gimp_scan_convert_free (GimpScanConvert *scan_converter);
29
/* set the Pixel-Ratio (width / height) for the pixels.
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,
34
/* Add "npoints" from "pointlist" to the polygon currently being
35
* described by "scan_converter". DEPRECATED.
37
void gimp_scan_convert_add_points (GimpScanConvert *scan_converter,
28
void gimp_scan_convert_set_clip_rectangle (GimpScanConvert *sc,
33
void gimp_scan_convert_add_points (GimpScanConvert *sc,
39
35
GimpVector2 *points,
40
36
gboolean new_polygon);
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.
46
* Please note that you should use gimp_scan_convert_stroke() if you
47
* specify open polygons.
49
void gimp_scan_convert_add_polyline (GimpScanConvert *sc,
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.
58
* You cannot add additional polygons after this command.
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
66
void gimp_scan_convert_stroke (GimpScanConvert *sc,
37
void gimp_scan_convert_add_polyline (GimpScanConvert *sc,
41
void gimp_scan_convert_stroke (GimpScanConvert *sc,
68
43
GimpJoinStyle join,
71
46
gdouble dash_offset,
72
47
GArray *dash_info);
75
/* This is a more low level version. Expects a tile manager of depth 1.
77
* You cannot add additional polygons after this command.
79
void gimp_scan_convert_render (GimpScanConvert *scan_converter,
48
void gimp_scan_convert_render (GimpScanConvert *sc,
80
49
TileManager *tile_manager,
83
52
gboolean antialias);
53
void gimp_scan_convert_render_value (GimpScanConvert *sc,
54
TileManager *tile_manager,
58
void gimp_scan_convert_compose (GimpScanConvert *sc,
60
TileManager *tile_manager,
86
65
#endif /* __GIMP_SCAN_CONVERT_H__ */