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
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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