HaruImage::getHeight

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

HaruImage::getColorSpace

(PECL haru >= 0.0.1) Get the name of the color space string HaruImage::getColorSpace ( void ) Get the name of the color space. Returns: Returns the name of the color space of the image. The name is one of the following values: "DeviceGray" "DeviceRGB" "DeviceCMYK" "Indexed" Exception: Throws a HaruException on error.

HaruImage::getBitsPerComponent

(PECL haru >= 0.0.1) Get the number of bits used to describe each color component of the image int HaruImage::getBitsPerComponent ( void ) Gets the number of bits used to describe each color component of the image. Returns: Returns the number of bits used to describe each color component of the image. Exception: Throws a HaruException on error.

HaruFont::measureText

(PECL haru >= 0.0.1) Calculate the number of characters which can be included within the specified width int HaruFont::measureText ( string $text, float $width, float $font_size, float $char_space, float $word_space [, bool $word_wrap = false ] ) Calculate the number of characters which can be included within the specified width. Parameters: text The text to fit the w

HaruFont::getXHeight

(PECL haru >= 0.0.1) Get the distance from the baseline of lowercase letters int HaruFont::getXHeight ( void ) Gets the distance from the baseline of lowercase letters. Returns: Returns the distance from the baseline of lowercase letters. Exception: Throws a HaruException on error.

HaruFont::getUnicodeWidth

(PECL haru >= 0.0.1) Get the width of the character in the font int HaruFont::getUnicodeWidth ( int $character ) Get the width of the character in the font. Parameters: character The code of the character. Returns: Returns the width of the character in the font. Exception: Throws a HaruException on error.

HaruFont::getTextWidth

(PECL haru >= 0.0.1) Get the total width of the text, number of characters, number of words and number of spaces array HaruFont::getTextWidth ( string $text ) Get the total width of the text, number of characters, number of words and number of spaces. Parameters: text The text to measure. Returns: Returns the total width of the text, number of

HaruFont::getFontName

(PECL haru >= 0.0.1) Get the name of the font string HaruFont::getFontName ( void ) Get the name of the font. Returns: Returns the name of the font. Exception: Throws a HaruException on error.

HaruFont::getEncodingName

(PECL haru >= 0.0.1) Get the name of the encoding string HaruFont::getEncodingName ( void ) Get the name of the font encoding. Returns: Returns the name of the font encoding. Exception: Throws a HaruException on error.

HaruFont::getDescent

(PECL haru >= 0.0.1) Get the vertical descent of the font int HaruFont::getDescent ( void ) Get the vertical descent of the font. Returns: Return the vertical descent of the font. Exception: Throws a HaruException on error.