Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_open_image(3) [debian man page]

PS_OPEN_IMAGE(3)					     Library Functions Manual						  PS_OPEN_IMAGE(3)

NAME
PS_open_image -- Reads an image for later placement SYNOPSIS
#include <pslib.h> int PS_open_image(PSDoc *psdoc, char *type, char *source, char *data, int lenght, int width, int height, int components, int bpc, const char *params) DESCRIPTION
Reads an image which is already available in memory. The parameter source is currently not evaluated and assumed to be `memory'. The param- eter type can be either `raw' or `eps'. Images in raw format are expected to be a stream of pixels starting in the upper left and ending in the lower right corner. Each pixel is a tuple of components representing the colors. Each component consists of bpc bit. Color imgags expect the components to be stored in RGB or CMYK order. The number of components implies the colorspace. 4 components imply a CMYK image and not an RGB image with an alpha channel. This restriction may be removed in later versions. EPS images are expect as stored in a file. There is no need to set any other paramter. The height und width of the image is taken from the bounding box within the image data. Since version 0.4.5 of pslib images are read by default for later reuse. This means that the image is saved into a so called reusable stream object. Later calls of PS_place_image(3) will only put a short sequence of postscript code into the output file replay- ing the image. This reduces the overall postscript file size, speeds up its processing by the postscript rip and allows to place images into templates. This behaviour can be turned off by setting the parameter `imagereuse' to false with PS_set_parameter(3). RETURN VALUE
Returns identifier of the image or zero in case of an error. The identifier is a positiv number greater 0. SEE ALSO
PS_open_image_file(3), PS_place_image(3), PS_close_image(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PS_OPEN_IMAGE(3)

Check Out this Related Man Page

Tk_ImageChanged(3)					       Tk Library Procedures						Tk_ImageChanged(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tk_ImageChanged - notify widgets that image needs to be redrawn SYNOPSIS
#include <tk.h> Tk_ImageChanged(imageMaster, x, y, width, height, imageWidth, imageHeight) ARGUMENTS
Tk_ImageMaster imageMaster (in) Token for image, which was passed to image's createProc when the image was created. int x (in) X-coordinate of upper-left corner of region that needs redisplay (measured from upper-left corner of image). int y (in) Y-coordinate of upper-left corner of region that needs redisplay (measured from upper-left corner of image). int width (in) Width of region that needs to be redrawn, in pixels. int height (in) Height of region that needs to be redrawn, in pixels. int imageWidth (in) Current width of image, in pixels. int imageHeight (in) Current height of image, in pixels. _________________________________________________________________ DESCRIPTION
An image manager calls Tk_ImageChanged for an image whenever anything happens that requires the image to be redrawn. As a result of call- ing Tk_ImageChanged, any widgets using the image are notified so that they can redisplay themselves appropriately. The imageMaster argu- ment identifies the image, and x, y, width, and height specify a rectangular region within the image that needs to be redrawn. imageWidth and imageHeight specify the image's (new) size. An image manager should call Tk_ImageChanged during its createProc to specify the image's initial size and to force redisplay if there are existing instances for the image. If any of the pixel values in the image should change later on, Tk_ImageChanged should be called again with x, y, width, and height values that cover all the pixels that changed. If the size of the image should change, then Tk_ImageChanged must be called to indicate the new size, even if no pixels need to be redisplayed. SEE ALSO
Tk_CreateImageType KEYWORDS
images, redisplay, image size changes Tk 4.0 Tk_ImageChanged(3)
Man Page