HaruDoc::loadRaw

(PECL haru >= 0.0.1)
Load a RAW image
object HaruDoc::loadRaw ( string $filename, int $width, int $height, int $color_space )

Loads a RAW image.

Parameters:
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:

Returns a HaruImage instance.

Exception:

Throws a HaruException on error.

See also:

HaruDoc::loadJPEG() -

HaruDoc::loadPNG() -

doc_php
2016-02-24 16:03:10
Comments
Leave a Comment

Please login to continue.