PHP Conference Japan 2024

ps_open_image_file

(PECL ps >= 1.1.0)

ps_open_image_file從檔案開啟影像

說明

ps_open_image_file(
    資源 $psdoc,
    字串 $type,
    字串 $filename,
    字串 $stringparam = ?,
    整數 $intparam = 0
): 整數

載入圖片以供後續使用。

參數

psdoc

ps_new() 返回的 PostScript 檔案資源識別碼。

type

圖片類型。可能的值為 pngjpegeps

filename

包含圖片資料的檔案名稱。

stringparam

未使用。

intparam

未使用。

傳回值

返回圖片的識別碼,如果發生錯誤則返回 0。識別碼是一個大於 0 的正數。

參見

新增註記

使用者提供的註記

此頁面沒有使用者提供的註記。
To Top