C# Class Ghostscript.NET.display_callback

Datei anzeigen Open project: jhabjan/Ghostscript.NET Class Usage Examples

Public Properties

Property Type Description
display_close display_close_callback
display_memalloc display_memalloc_callback
display_memfree display_memfree_callback
display_open display_open_callback
display_page display_page_callback
display_preclose display_preclose_callback
display_presize display_presize_callback
display_separation display_separation_callback
display_size display_size_callback
display_sync display_sync_callback
display_update display_update_callback
size int
version_major int
version_minor int

Property Details

display_close public_oe property

Device has been closed. This is the last event from this device.
public display_close_callback display_close
return display_close_callback

display_memalloc public_oe property

Allocate memory for bitmap This is provided in case you need to create memory in a special way, e.g. shared. If this is NULL, the Ghostscript memory device allocates the bitmap. This will only called to allocate the image buffer. The first row will be placed at the address returned by display_memalloc.
public display_memalloc_callback display_memalloc
return display_memalloc_callback

display_memfree public_oe property

Free memory for bitmap If this is NULL, the Ghostscript memory device will free the bitmap
public display_memfree_callback display_memfree
return display_memfree_callback

display_open public_oe property

New device has been opened This is the first event from this device.
public display_open_callback display_open
return display_open_callback

display_page public_oe property

showpage If you want to pause on showpage, then don't return immediately
public display_page_callback display_page
return display_page_callback

display_preclose public_oe property

Device is about to be closed. Device will not be closed until this function returns.
public display_preclose_callback display_preclose
return display_preclose_callback

display_presize public_oe property

Device is about to be resized. Resize will only occur if this function returns 0. raster is byte count of a row.
public display_presize_callback display_presize
return display_presize_callback

display_separation public_oe property

Added in V2 When using separation color space (DISPLAY_COLORS_SEPARATION), give a mapping for one separation component. This is called for each new component found. It may be called multiple times for each component. It may be called at any time between display_size and display_close. The client uses this to map from the separations to CMYK and hence to RGB for display. GS must only use this callback if version_major >= 2. The unsigned short c,m,y,k values are 65535 = 1.0. This function pointer may be set to NULL if not required.
public display_separation_callback display_separation
return display_separation_callback

display_size public_oe property

Device has been resized. New pointer to raster returned in pimage
public display_size_callback display_size
return display_size_callback

display_sync public_oe property

flushpage
public display_sync_callback display_sync
return display_sync_callback

display_update public_oe property

Notify the caller whenever a portion of the raster is updated. This can be used for cooperative multitasking or for progressive update of the display. This function pointer may be set to NULL if not required.
public display_update_callback display_update
return display_update_callback

size public_oe property

Size of this structure Used for checking if we have been handed a valid structure
public int size
return int

version_major public_oe property

Major version of this structure The major version number will change if this structure changes.
public int version_major
return int

version_minor public_oe property

Minor version of this structure The minor version number will change if new features are added without changes to this structure. For example, a new color format.
public int version_minor
return int