Php/docs/function.ps-open-image-file

提供:Dev Guides
< Php
移動先:案内検索

ps_open_image_file

(PECL ps >= 1.1.0)

ps_open_image_fileファイルから画像を開く


説明

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

後で使用するために、画像を読み込みます。


パラメータ

psdoc
ps_new() が返す、postscript ファイルのリソース ID。
type
画像の形式。pngjpeg あるいは eps
filename
画像データを含むファイルの名前。
stringparam
使用されません。
intparam
使用されません。


返り値

成功した場合に画像の ID を、失敗した場合にゼロを返します。 ID は、0 より大きい正の数値です。


参考