![]() |
![]() |
![]() |
GNOME Scan Reference Manual | ![]() |
---|---|---|---|---|
#define GNOME_TYPE_SCAN_RANGE #define GNOME_TYPE_SCAN_GEOMETRY #define GNOME_TYPE_SCAN_CONTEXT_INFO #define GNOME_TYPE_SCAN_FORECAST #define GNOME_TYPE_SCAN_RESULT GnomeScanGeometry; GnomeScanArea; GnomeScanRange; GnomeScanContextInfo; GnomeScanForecast; GnomeScanResult; enum GnomeScanUnit; enum GnomeScannerType; enum GnomeScannerSource; union GnomeScannerOptionConstraint; GType gnome_scan_range_get_type (void); GType gnome_scan_geometry_get_type (void); GType gnome_scan_context_info_get_type (void); GnomeScanContextInfo* gnome_scan_context_info_copy (GnomeScanContextInfo *info); void gnome_scan_context_info_free (GnomeScanContextInfo *info); GType gnome_scan_result_get_type (void); GnomeScanResult* gnome_scan_result_copy (GnomeScanResult *result); void gnome_scan_result_free (GnomeScanResult *result); gchar* gnome_scanner_source_get_title (GnomeScannerSource source);
#define GNOME_TYPE_SCAN_CONTEXT_INFO (gnome_scan_context_info_get_type ())
typedef struct { gdouble width; gdouble height; } GnomeScanGeometry;
gdouble width ; |
available width in mm. |
gdouble height ; |
available height in mm. |
typedef struct { gdouble x; gdouble y; gdouble width; gdouble height; } GnomeScanArea;
gdouble x ; |
top left corner X-coordinate |
gdouble y ; |
top left corner ordinate |
gdouble width ; |
area's width |
gdouble height ; |
area's height |
typedef struct { gdouble lower; gdouble upper; gdouble step; } GnomeScanRange;
A 0 step
indicate that no interval are specified.
gdouble lower ; |
minimal value |
gdouble upper ; |
maximal value |
gdouble step ; |
interval between values |
typedef struct { } GnomeScanContextInfo;
A boxed type that represent the scan option's value.
typedef struct { GnomeScanGeometry geometry; gsize size; gsize rowstride; } GnomeScanForecast;
A structure that hold forecast information about acquisition.
GnomeScanGeometry geometry ; |
image geometry in pixel |
gsize size ; |
raw image size in bytes. |
gsize rowstride ; |
image rowstride |
typedef struct { gdouble resolution; GnomeScannerSource source; GdkPixbuf *image; } GnomeScanResult;
A structure representing the result of an acquisition. Since the
resolution may be rounded, the resolution
field provide the final
image resolution.
gdouble resolution ; |
the actual resolution of the final image |
GnomeScannerSource source ; |
the source used to scan the image |
GdkPixbuf *image ; |
the acquired GdkPixbuf |
typedef enum { GNOME_SCAN_UNIT_NONE, GNOME_SCAN_UNIT_PIXEL, GNOME_SCAN_UNIT_BIT, GNOME_SCAN_UNIT_MM, GNOME_SCAN_UNIT_DPI, GNOME_SCAN_UNIT_PERCENT, GNOME_SCAN_UNIT_MICROSECOND } GnomeScanUnit;
typedef enum { GNOME_SCANNER_UNKNOWN, GNOME_SCANNER_FLATBED, GNOME_SCANNER_MULTI_FUNCTION, GNOME_SCANNER_SHEETFED, GNOME_SCANNER_HANDHELD, GNOME_SCANNER_CARD_READER } GnomeScannerType;
typedef enum { GNOME_SCANNER_SOURCE_NONE, GNOME_SCANNER_SOURCE_AUTOMATIC, GNOME_SCANNER_SOURCE_FLATBED, GNOME_SCANNER_SOURCE_AUTOMATIC_DOCUMENT_FEEDER /*< desc=Automatic Document Feeder >*/ } GnomeScannerSource;
union GnomeScannerOptionConstraint { GSList *enumeration; GnomeScanRange range; };
GnomeScanContextInfo* gnome_scan_context_info_copy (GnomeScanContextInfo *info);
Copy a GnomeScanContextInfo.
info : |
a GnomeScanContextInfo |
Returns : | a copy of info
|
void gnome_scan_context_info_free (GnomeScanContextInfo *info);
Free a GnomeScanContextInfo
info : |
a GnomeScanContextInfo |
GnomeScanResult* gnome_scan_result_copy (GnomeScanResult *result);
Copy a GnomeScanResult.
result : |
a GnomeScanResult |
Returns : | a copy of result
|
void gnome_scan_result_free (GnomeScanResult *result);
Free a GnomeScanResult
result : |
a GnomeScanResult |
gchar* gnome_scanner_source_get_title (GnomeScannerSource source);
Return the translated source title.
source : |
the source value |
Returns : | the source title string |