메소드 |
설명 |
|
addAlpha ( mixed $image, boolean $isBlend = true ) |
Add alpha chanel to image resource |
|
alpha ( integer $color ) : integer |
|
|
blur ( string $blur ) : integer |
|
|
brightness ( integer $brightness ) : integer |
|
|
checkGD ( boolean $thowException = true ) : boolean |
Require GD library |
|
color ( integer $color ) : integer |
|
|
colorize ( integer $colorize ) : integer |
|
|
contrast ( integer $contrast ) : integer |
|
|
direction ( string $direction ) : string |
|
|
getInnerCoords ( string $position, array $canvas, array $box, array $offset = [0, 0] ) : array |
Determine position |
|
imageCopyMergeAlpha ( mixed $dstImg, mixed $srcImg, array $dist, array $src, array $srcSizes, integer $opacity ) |
Same as PHP's imagecopymerge() function, except preserves alpha-transparency in 24-bit PNGs |
|
isGdRes ( mixed $image ) : boolean |
Check is var image GD resource |
|
isGif ( string $format ) : boolean |
|
|
isJpeg ( string $format ) : boolean |
|
|
isPng ( string $format ) : boolean |
|
|
isSupportedFormat ( string $format ) : boolean |
Check is format supported by lib |
|
normalizeColor ( string | array $origColor ) : integer[] |
Converts a hex color value to its RGB equivalent |
|
opacity ( $opacity ) : integer |
Check opacity value |
|
opacity2Alpha ( integer $opacity ) : integer |
Convert opacity value to alpha |
|
percent ( string $percent ) : integer |
|
|
position ( string $position ) : string |
Check position name |
|
quality ( string $percent ) : integer |
|
|
range ( mixed $value, integer $min, integer $max ) : integer |
Ensures $value is always within $min and $max range. |
|
rotate ( integer $color ) : integer |
|
|
smooth ( integer $smooth ) : integer |
|
|
strToBin ( $imageString ) : string |
Convert string to binary data |
|