프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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. |
public getContentType ( ) : string | ||
리턴 | string | The MIME type for this image. |
public getImageAtIndex ( integer $index ) : Horde_Image_Png | ||
$index | integer | The index to return |
리턴 | Horde_Image_Png |
public getImagePageCount ( ) : integer | ||
리턴 | integer | The number of images. |
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. |
protected int $_colorDepth | ||
리턴 | integer |
protected int $_colorType | ||
리턴 | integer |
protected int $_compressionMethod | ||
리턴 | integer |
protected int $_filterMethod | ||
리턴 | integer |
protected int $_interlaceMethod | ||
리턴 | integer |