php教程

HaruDoc::loadRaw

(PECL haru >= 0.0.1)

HaruDoc::loadRawLoad a RAW image

说明

HaruDoc::loadRaw ( string $filename , int $width , int $height , int $color_space ) : object

Loads a RAW image.

参数

filename

The name of a RAW image file.

width

The width of the image.

height

The height of the image.

color_space

The color space of the image. Can be one of the following values:

  • HaruDoc::CS_DEVICE_GRAY
  • HaruDoc::CS_DEVICE_RGB
  • HaruDoc::CS_DEVICE_CMYK

返回值

Returns a HaruImage instance.

错误/异常

发生错误时抛出 HaruException 异常。

参见

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788