Home > PHP > Function > PS > ps_open_image_file()

ps_open_image_file()

ps_open_image_file - Opens image from file

Syntax

int ps_open_image_file (resource $psdoc, string $type, string $filename, string $stringparam, int $intparam)

Arguments

  • psdoc - Resource identifier of the postscript file as returned by ps_new().
  • type - The type of the image. Possible values are png, jpeg, or eps.
  • filename - The name of the file containing the image data.
  • stringparam - Not used.
  • intparam - Not used.

Description

Loads an image for later use.

Version

PHP PECL ps >= 1.1.0

Return value

Returns identifier of image or zero in case of an error. The identifier is a positive number greater than 0.