1 .\" Title: \fBlqr_carver_scan_line\fR
2 .\" Author: Carlo Baldassi
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
5 .\" Manual: LqR library API reference
6 .\" Source: LqR library 0.4.0 API (3:0:3)
8 .TH "\FBLQR_CARVER_SCAN_LINE\FR" "3" "16 Apr 2009" "LqR library 0.4.0 API (3:0:3)" "LqR library API reference"
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 lqr_carver_scan_line, lqr_carver_scan_line_ext \- read out a multi-size image one line at a time
23 .BI "gboolean lqr_carver_scan_line(LqrCarver*\ " "carver" ", gint*\ " "n" ", guchar**\ " "rgb" ");"
25 .BI "gboolean lqr_carver_scan_line_ext(LqrCarver*\ " "carver" ", gint*\ " "n" ", void**\ " "rgb" ");"
29 \fBlqr_carver_scan_line\fR
31 \fBlqr_carver_scan_line_ext\fR
32 are used to read out the multi\-size image contained in the
36 one line at a time\&. They store the line number (row or column) in the variable pointed to by
38 and the colour values in the array pointed to by
39 \fIrgb\fR; then they move the readout pointer to the next line, or they reset it if the end of the image is reached\&.
41 The first one must only be used on the
44 \fIlqr_carver_new\fR, i\&.e\&. with 8\-bit images, while the second one is general, but the
46 pointer must be cast to the appropriate type to be used (i\&.e pass the address of a pointer to
49 \fBlqr_carver_scan_line_ext\fR, then cast it to a pointer of the appropriate type and use this last one for reading the output)\&.
52 \fBlqr_carver_scan_by_row\fR(3)
53 before calling these to know whether your image will be scanned by row or by column\&.
56 These functions return
58 in case the readout is successful and the end of the image was not reached,
61 \fBlqr_carver_scan_line\fR
62 is called over a non\-8\-bit
64 object, it will return
69 \fBLqrColDepth\fR(3), \fBlqr_carver_scan_reset\fR(3), \fBlqr_carver_scan\fR(3), \fBlqr_carver_scan_by_row\fR(3)
71 Copyright \(co 2007-2009 Carlo Baldassi