Method |
Description |
|
__construct ( string $img, integer | string $w = null, integer | string $h = null, Pop\Color\Space\ColorInterface $color = null, array $types = null ) : Gd |
Constructor |
|
__destruct ( ) : void |
Destructor to destroy the image resource |
|
__toString ( ) : string |
To string method to output the image |
|
blur ( integer $amount, integer $type = Gd::GAUSSIAN_BLUR ) : Gd |
Method to blur the image. |
|
border ( integer $w, integer $h = null, integer $type = Gd::INNER_BORDER ) : Gd |
Method to add a border to the image. |
|
brightness ( integer $b ) : Gd |
Method to adjust the brightness of the image. |
|
colorTotal ( ) : integer |
Return the number of colors in the palette of indexed images. |
|
colorize ( Pop\Color\Space\ColorInterface $color ) : Gd |
Method to colorize the image with the color passed. |
|
contrast ( integer $amount ) : Gd |
Method to adjust the contrast of the image. |
|
convert ( string $type ) : Gd |
Convert the image object to the new specified image type. |
|
crop ( integer | string $wid, integer | string $hgt, integer | string $x, integer | string $y ) : mixed |
Crop the image object |
|
cropThumb ( integer | string $px, integer | string $x, integer | string $y ) : Gd |
Crop the image object to a square image |
|
desaturate ( ) : Gd |
Method to desaturate the image. |
|
destroy ( boolean $file = false ) : void |
Destroy the image object and the related image file directly. |
|
diffuse ( integer $radius ) : Gd |
Dummy method to match the Imagick API. |
|
drawArc ( integer $x, integer $y, integer $start, integer $end, integer $w, integer $h = null ) : Gd |
Method to add an arc to the image. |
|
drawCircle ( integer $x, integer $y, integer $w ) : Gd |
Method to add a circle to the image. |
|
drawEllipse ( integer $x, integer $y, integer $w, integer $h = null ) : Gd |
Method to add an ellipse to the image. |
|
drawLine ( integer $x1, integer $y1, integer $x2, integer $y2 ) : Gd |
Method to add a line to the image. |
|
drawPolygon ( array $points ) : Gd |
Method to add a polygon to the image. |
|
drawRectangle ( integer $x, integer $y, integer $w, integer $h = null ) : Gd |
Method to add a rectangle to the image. |
|
drawSquare ( integer $x, integer $y, integer $w ) : Gd |
Method to add a square to the image. |
|
flatten ( ) : Gd |
Dummy method to match the Imagick API. |
|
flip ( ) : Gd |
Method to flip the image over the x-axis. |
|
flop ( ) : Gd |
Method to flip the image over the y-axis. |
|
formats ( ) : array |
Get formats |
|
getColors ( integer | string $format = Pop\Image\Gd::HEX ) : array |
Return all of the colors in the palette in an array format |
|
getFormats ( ) : array |
Get the array of supported formats of Imagick. |
|
getNumberOfFormats ( ) : integer |
Get the number of supported formats of Imagick. |
|
hsb ( integer $h, integer $s, integer $b ) : Gd |
Dummy method to match the Imagick API. |
|
hue ( integer $h ) : Gd |
Dummy method to match the Imagick API. |
|
invert ( ) : Gd |
Method to invert the image (create a negative.) |
|
isInstalled ( ) : boolean |
Check if GD is installed. |
|
level ( integer $black, float $gamma, integer $white ) : Gd |
Dummy method to match the Imagick API. |
|
noise ( integer $type ) : Gd |
Dummy method to match the Imagick API. |
|
output ( boolean $download = false ) : Gd |
Output the image object directly. |
|
overlay ( string $ovr, integer | string $x, integer | string $y ) : Gd |
Overlay an image onto the current image. |
|
paint ( integer $radius ) : Gd |
Dummy method to match the Imagick API. |
|
pencil ( ) : Gd |
Apply a pencil/sketch effect to the image |
|
pixelate ( integer $px ) : Gd |
Apply a mosiac pixelate effect to the image |
|
posterize ( integer $levels, boolean $dither = false ) : Gd |
Dummy method to match the Imagick API. |
|
resize ( integer | string $px ) : Gd |
Resize the image object to the largest dimension |
|
resizeToHeight ( integer | string $hgt ) : mixed |
Resize the image object to the height parameter passed. |
|
resizeToWidth ( integer | string $wid ) : mixed |
Resize the image object to the width parameter passed. |
|
resource ( ) : resource |
Get the image resource to directly interact with it |
|
rotate ( integer | string $deg ) : Gd |
Rotate the image object, using simple degrees, i.e. -90,
to rotate the image. |
|
saturation ( integer $s ) : Gd |
Dummy method to match the Imagick API. |
|
save ( string $to = null, boolean $append = false ) : Gd |
Save the image object to disk. |
|
scale ( float | string $scl ) : Gd |
Scale the image object |
|
setBlur ( integer | string $blur = null ) : Imagick |
Dummy method to match the Imagick API. |
|
setCompression ( mixed $comp = null ) : Imagick |
Set the image compression quality. |
|
setFilter ( integer | string $filter = null ) : Gd |
Dummy method to match the Imagick API. |
|
setFormats ( ) : Gd |
Dummy method to match the Imagick API. |
|
setOpacity ( integer | string $opac ) : Gd |
Set the opacity. |
|
setOverlay ( integer | string $ovr = null ) : Imagick |
Dummy method to match the Imagick API. |
|
setQuality ( mixed $q = null ) : Gd |
Set the image quality based on the type of image. |
|
sharpen ( integer $amount ) : Gd |
Method to sharpen the image. |
|
skew ( Pop\Color\Space\ColorInterface $color, integer $x, integer $y ) : Gd |
Dummy method to match the Imagick API. |
|
swirl ( integer $degrees ) : Gd |
Dummy method to match the Imagick API. |
|
text ( string $str, integer | string $size, integer | string $x, integer | string $y, string $font = null, integer | string $rotate = null, boolean $stroke = false ) : Gd |
Create text within the an image object |
|
wave ( integer $amp, integer $length ) : Gd |
Dummy method to match the Imagick API. |
|