HaruOutline::setOpened

(PECL haru >= 0.0.1) Set the initial state of the outline bool HaruOutline::setOpened ( bool $opened ) Defines whether this node is opened or not when the outline is displayed for the first time. Parameters: opened TRUE means open, FALSE - closed. Returns: Returns TRUE on success. Exception: Throws a HaruExcept

HaruOutline::setDestination

(PECL haru >= 0.0.1) Set the destination for the outline bool HaruOutline::setDestination ( object $destination ) Sets a destination object which becomes a target to jump to when the outline is clicked. Parameters: destination A valid HaruDestination instance. Returns: Returns TRUE on success. Exception: Throws

HaruEncoder::getWritingMode

(PECL haru >= 0.0.1) Get the writing mode of the encoder int HaruEncoder::getWritingMode ( void ) Get the writing mode of the encoder. Returns: Returns the writing mode of the encoder. The result value is on of the following: HaruEncoder::WMODE_HORIZONTAL - horizontal writing mode. HaruEncoder::WMODE_VERTICAL - vertical writing mode. Exception: Throws a HaruException on error.

HaruEncoder::getUnicode

(PECL haru >= 0.0.1) Convert the specified character to unicode int HaruEncoder::getUnicode ( int $character ) Converts the specified character to unicode. Parameters: character The character code to convert. Returns: Exception: Throws a HaruException on error.

HaruEncoder::getType

(PECL haru >= 0.0.1) Get the type of the encoder int HaruEncoder::getType ( void ) Get the type of the encoder. Returns: Returns the type of the encoder. The result is one of the following values: HaruEncoder::TYPE_SINGLE_BYTE - the encoder is for single byte characters. HaruEncoder::TYPE_DOUBLE_BYTE - the encoder is for multibyte characters. HaruEncoder::TYPE_UNINITIALIZED - the encoder

HaruEncoder::getByteType

(PECL haru >= 0.0.1) Get the type of the byte in the text int HaruEncoder::getByteType ( string $text, int $index ) Get the type of the byte in the text. Parameters: text The text. index The position in the text. Returns: Returns the type of the byte in the text on the specified position. The result is one o

HaruImage::setMaskImage

(PECL haru >= 0.0.1) Set the image mask bool HaruImage::setMaskImage ( object $mask_image ) Sets the image used as image-mask. It must be 1bit gray-scale color image. Parameters: mask_image A valid HaruImage instance. Returns: Returns TRUE on success. Exception: Throws a HaruException on error.

HaruImage::setColorMask

(PECL haru >= 0.0.1) Set the color mask of the image bool HaruImage::setColorMask ( int $rmin, int $rmax, int $gmin, int $gmax, int $bmin, int $bmax ) Defines the transparent color of the image using the RGB range values. The color within the range is displayed as a transparent color. The color space of the image must be RGB. Parameters: rmin The lower limit of red. Mu

HaruImage::getWidth

(PECL haru >= 0.0.1) Get the width of the image int HaruImage::getWidth ( void ) Get the width of the image. Returns: Returns the width of the image. Exception: Throws a HaruException on error.

HaruImage::getSize

(PECL haru >= 0.0.1) Get size of the image array HaruImage::getSize ( void ) Get the size of the image. Returns: Returns an array with two elements: width and height, which contain appropriate dimensions of the image. Exception: Throws a HaruException on error.