PHP Класс Horde_Image_Png, horde

Copyright 2003-2014 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Mike Cochrane ([email protected])
Наследование: extends Horde_Image_Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_colorDepth integer Color depth (only 8 and 16 implemented).
$_colorType integer Color type (only 2 (true color) implemented).
$_compressionMethod integer Compression method (0 is the only current valid value).
$_filterMethod integer Filter method (0 is the only current valid value).
$_img array The array of pixel data.
$_interlaceMethod integer Interlace method (only 0 (no interlace) implemented).

Открытые методы

Метод Описание
__construct ( $params, $context = [] ) PNG image constructor.
getContentType ( ) : string Returns the MIME type for this image.
getImageAtIndex ( integer $index ) : Horde_Image_Png Requests a specific image from the collection of images.
getImagePageCount ( ) : integer Returns the number of image pages available in the image object.
raw ( ) : string Returns the raw data for this image.
rectangle ( integer $x, integer $y, integer $width, integer $height, string $color = 'black', string $fill = 'none' ) Draws a rectangle.
reset ( ) Resets the image data to defaults.

Защищенные методы

Метод Описание
_Adler32 ( $input ) Calculates an Adler32 checksum for a string.
_IDAT ( ) Creates the IDAT block.
_IEND ( ) Creates the IEND block.
_IHDR ( ) Creates the IHDR block.
_header ( ) Creates the PNG file header.
_tEXt ( $keyword, $text ) Creates the tEXt block.
_tIME ( integer $date = null ) Creates the tIME block.

Описание методов

_Adler32() защищенный Метод

Calculates an Adler32 checksum for a string.
protected _Adler32 ( $input )

_IDAT() защищенный Метод

Creates the IDAT block.
protected _IDAT ( )

_IEND() защищенный Метод

Creates the IEND block.
protected _IEND ( )

_IHDR() защищенный Метод

Creates the IHDR block.
protected _IHDR ( )

__construct() публичный Метод

PNG image constructor.
public __construct ( $params, $context = [] )

_header() защищенный Метод

Creates the PNG file header.
protected _header ( )

_tEXt() защищенный Метод

Creates the tEXt block.
protected _tEXt ( $keyword, $text )

_tIME() защищенный Метод

Creates the tIME block.
protected _tIME ( integer $date = null )
$date integer A timestamp.

getContentType() публичный Метод

Returns the MIME type for this image.
public getContentType ( ) : string
Результат string The MIME type for this image.

getImageAtIndex() публичный Метод

Requests a specific image from the collection of images.
public getImageAtIndex ( integer $index ) : Horde_Image_Png
$index integer The index to return
Результат Horde_Image_Png

getImagePageCount() публичный Метод

Returns the number of image pages available in the image object.
public getImagePageCount ( ) : integer
Результат integer The number of images.

raw() публичный Метод

Returns the raw data for this image.
public raw ( ) : string
Результат string The raw image data.

rectangle() публичный Метод

Draws a rectangle.
public rectangle ( integer $x, integer $y, integer $width, integer $height, string $color = 'black', string $fill = 'none' )
$x integer The left x-coordinate of the rectangle.
$y integer The top y-coordinate of the rectangle.
$width integer The width of the rectangle.
$height integer The height of the rectangle.
$color string The line color of the rectangle.
$fill string The color to fill the rectangle.

reset() публичный Метод

Resets the image data to defaults.
public reset ( )

Описание свойств

$_colorDepth защищенное свойство

Color depth (only 8 and 16 implemented).
protected int $_colorDepth
Результат integer

$_colorType защищенное свойство

Color type (only 2 (true color) implemented).
protected int $_colorType
Результат integer

$_compressionMethod защищенное свойство

Compression method (0 is the only current valid value).
protected int $_compressionMethod
Результат integer

$_filterMethod защищенное свойство

Filter method (0 is the only current valid value).
protected int $_filterMethod
Результат integer

$_img защищенное свойство

The array of pixel data.
protected array $_img
Результат array

$_interlaceMethod защищенное свойство

Interlace method (only 0 (no interlace) implemented).
protected int $_interlaceMethod
Результат integer