Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

stp_image Struct Reference
[image]

The image type is an abstract data type for interfacing with the image creation program. More...

#include <image.h>


Data Fields

void(* init )(struct stp_image *image)
 This callback is used to perform any initialization required by the image layer for the image.
void(* reset )(struct stp_image *image)
 This callback is called to reset the image to the beginning.
int(* width )(struct stp_image *image)
 This callback returns the width of the image in pixels.
int(* height )(struct stp_image *image)
 This callback returns the height of the image in pixels.
stp_image_status_t(* get_row )(struct stp_image *image, unsigned char *data, size_t byte_limit, int row)
 This callback transfers the data from the image to the gimp-print library.
const char *(* get_appname )(struct stp_image *image)
 This callback returns the name of the application.
void(* conclude )(struct stp_image *image)
 This callback is called at the end of each page.
void * rep
 A pointer to an application-specific state information that might need to be associated with the image object.


Detailed Description

The image type is an abstract data type for interfacing with the image creation program.

It provides callbacks to functions defined within the client application which are called while printing the image.


Field Documentation

void(* stp_image::init)(struct stp_image *image)
 

This callback is used to perform any initialization required by the image layer for the image.

It will be called once per image.

Parameters:
image the image in use.


The documentation for this struct was generated from the following file:
Generated on Sat Aug 27 11:56:03 2005 for libgutenprint API Reference by  doxygen 1.4.4