PS_OPEN_IMAGE_FILE(3) Library Functions Manual PS_OPEN_IMAGE_FILE(3)NAME
PS_open_image_file -- Opens an image from file
SYNOPSIS
#include <pslib.h>
int PS_open_image_file(PSDoc *psdoc, const char *type, const char *filename, const char *stringparam, int intparam)
DESCRIPTION
This function reads image data from a file. It can read png, jpeg, gif, tiff, and eps files. png, jpeg, gif, and tiff images can only be
read if pslib has been compiled with support for those formats. Once an image has been loaded it can be placed on a page with
PS_place_image(3).
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 image or zero in case of an error. The identifier is a positiv number greater 0.
SEE ALSO PS_open_image(3), PS_place_image(3), PS_close_image(3)AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PS_OPEN_IMAGE_FILE(3)
Check Out this Related Man Page
PS_OPEN_IMAGE(3) 1 PS_OPEN_IMAGE(3)ps_open_image - Reads an image for later placementSYNOPSIS
int ps_open_image (resource $psdoc, string $type, string $source, string $data, int $lenght, int $width, int $height, int $compo-
nents, int $bpc, string $params)
DESCRIPTION
Reads an image which is already available in memory. The parameter $source is currently not evaluated and assumed to be memory. The image
data is a sequence of pixels starting in th upper left corner and ending in the lower right corner. Each pixel consists of $components
color components, and each component has $bpc bits.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $type
- The type of the image. Possible values are png, jpeg, or eps.
o $source
- Not used.
o $data
- The image data.
o $length
- The length of the image data.
o $width
- The width of the image.
o $height
- The height of the image.
o $components
- The number of components for each pixel. This can be 1 (gray scale images), 3 (rgb images), or 4 (cmyk, rgba images).
o $bpc
- Number of bits per component (quite often 8).
o $params
-
RETURN VALUES
Returns identifier of image or zero in case of an error. The identifier is a positive number greater than 0.
SEE ALSO ps_open_image_file(3), ps_place_image(3), ps_close_image(3).
PHP Documentation Group PS_OPEN_IMAGE(3)
sorry, it is a dumb question, but i could not find any answer in anything else.
does anybody know whether there is any postscript file reader for HP-Unix?
:) (1 Reply)
Hi All,
I am trying to convert my file containing a image file (bmp,jpg, or gif ) into a postscript format on solaris.
I have configured the printer with following configuration,
PrinterName : psPrinter
Print Server : "machine name"
Printer Port : /dev/null
Printer Type :... (1 Reply)
G'day,
I've a Solaris 9 box & I've configured a HP Laserjet for postscript printing.
When my client prints an English postscript file, it gets printed fine. But when he sends a Chinese postscript file, there is no output at the printer.
Is there anything I need to set for Chinese... (0 Replies)
Hi everybody,
I have more tan 300 images postscripts (.ps) in my UNIX enviroment.
I would like to have all these images in a single Power Point presentation (windows enviroment).
Anybody has a clue how to convert all those .ps file into a format recognized by Power Point in an automatic... (1 Reply)
Hi,
I have several folders full of image sequences from an animation.
The image frames are named Frame0001.png to Frame0900.png, somewhere along the way the images have been named in reverse order.
Is there a script that read the contents of a folder and renumber the files Frame0001.png -... (1 Reply)
I have images in PS that I want to convert to JPG (unfortunately, I need to use them in Powerpoint! :eek:). The problem is that the edges of the image get chopped off when I use:
convert filename.ps filename.jpg
So, for example, in my plots, the top and bottom labels for the x-axis are... (0 Replies)
Hello everyone:
Im not going to explain about kickstart, i supposed you know, that one of the features of this program is to run a postscript after installation.So after install packages you can run a set of commands to make a "first-configuration" of your system.
Usually people writes... (0 Replies)
Hello !
I have a file structure like this:
1_0/file1.tiff
1_1/file2.tiff
1_2/file3.tiff
1_3/file4.tiff
1_4/file5.tiff
1_5/file6.tiff
1_6/file7.tiff
2_0/file8.tiff
2_1/file9.tiff
2_2/file10.tiff
2_3/file11.tiff
etc.
There is only one file in one directory.
I'd like to have files... (8 Replies)