Opens image from file

ps_open_image_file

(PECL ps >= 1.1.0)

ps_open_image_fileOpens image from file

說明

ps_open_image_file(
    resource $psdoc,
    string $type,
    string $filename,
    string $stringparam = ?,
    int $intparam = 0
): int

Loads an image for later use.

參數

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.

返回值

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

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *