Метод | Описание | |
---|---|---|
__clone ( ) | Method called when 'clone' keyword is used. | |
__construct ( resource $gd, string $imageFile, integer $width, integer $height, string $type, string $blocks = '', boolean $animated = false ) | Image constructor. | |
alphaBlendingMode ( boolean $flag ) : self | Set the blending mode for an image. Allows transparent overlays on top of an image. | |
blob ( string | |
Output a binary raw dump of an image in a specified format. | |
createBlank ( integer $width = 1, integer $height = 1 ) : |
Create a blank image. | |
createFromCore ( resource $gd ) : |
Create an Image from a GD resource. The file type defaults to unknown. | |
createFromFile ( string $imageFile ) : |
Create Image from image file. | |
fullAlphaMode ( boolean $flag ) : self | Enable/Disable transparency | |
getBlocks ( ) : string. | Get blocks. | |
getCore ( ) : resource | Get GD resource ID. | |
getHeight ( ) : integer | Get image height in pixels. | |
getImageFile ( ) : string | Get image file path. | |
getType ( ) : string | Get image type. | |
getWidth ( ) : integer | Get image width in pixels. | |
histogram ( array | null $slice = null ) : array | Get histogram from an entire image or its sub-region. | |
isAnimated ( ) : boolean | Returns animated flag. |
Метод | Описание | |
---|---|---|
_createGif ( string $imageFile ) : |
Load a GIF image. | |
_createJpeg ( string $imageFile ) : |
Load a JPEG image. | |
_createPng ( string $imageFile ) : |
Load a PNG image. | |
_createWbmp ( string $imageFile ) : |
Load a WBMP image. | |
_guessType ( $imageFile ) : string |
public __construct ( resource $gd, string $imageFile, integer $width, integer $height, string $type, string $blocks = '', boolean $animated = false ) | ||
$gd | resource | Must use GD's imagecreate* family of functions to create a GD resource. |
$imageFile | string | |
$width | integer | |
$height | integer | |
$type | string | |
$blocks | string | |
$animated | boolean |
public alphaBlendingMode ( boolean $flag ) : self | ||
$flag | boolean | True to enable blending mode. |
Результат | self |
public static createBlank ( integer $width = 1, integer $height = 1 ) : |
||
$width | integer | Width in pixels. |
$height | integer | Height in pixels. |
Результат |
public static createFromCore ( resource $gd ) : |
||
$gd | resource | GD resource. |
Результат |
public static createFromFile ( string $imageFile ) : |
||
$imageFile | string | Path to image. |
Результат |
public fullAlphaMode ( boolean $flag ) : self | ||
$flag | boolean | True to enable alpha mode. |
Результат | self |
public getImageFile ( ) : string | ||
Результат | string | File path to image. |
public isAnimated ( ) : boolean | ||
Результат | boolean | True if animated GIF. |