Class **Phalcon\\Image\\Adapter\\Gd** ===================================== *extends* abstract class :doc:`Phalcon\\Image\\Adapter ` *implements* :doc:`Phalcon\\Image\\AdapterInterface ` .. role:: raw-html(raw) :format: html :raw-html:`Source on GitHub` Methods ------- public static **check** () ... public **__construct** (*mixed* $file, [*mixed* $width], [*mixed* $height]) ... protected **_resize** (*mixed* $width, *mixed* $height) ... protected **_crop** (*mixed* $width, *mixed* $height, *mixed* $offsetX, *mixed* $offsetY) ... protected **_rotate** (*mixed* $degrees) ... protected **_flip** (*mixed* $direction) ... protected **_sharpen** (*mixed* $amount) ... protected **_reflection** (*mixed* $height, *mixed* $opacity, *mixed* $fadeIn) ... protected **_watermark** (:doc:`Phalcon\\Image\\Adapter ` $watermark, *mixed* $offsetX, *mixed* $offsetY, *mixed* $opacity) ... protected **_text** (*mixed* $text, *mixed* $offsetX, *mixed* $offsetY, *mixed* $opacity, *mixed* $r, *mixed* $g, *mixed* $b, *mixed* $size, *mixed* $fontfile) ... protected **_mask** (:doc:`Phalcon\\Image\\Adapter ` $mask) ... protected **_background** (*mixed* $r, *mixed* $g, *mixed* $b, *mixed* $opacity) ... protected **_blur** (*mixed* $radius) ... protected **_pixelate** (*mixed* $amount) ... protected **_save** (*mixed* $file, *mixed* $quality) ... protected **_render** (*mixed* $ext, *mixed* $quality) ... protected **_create** (*mixed* $width, *mixed* $height) ... public **__destruct** () ... public **getImage** () inherited from :doc:`Phalcon\\Image\\Adapter ` ... public **getRealpath** () inherited from :doc:`Phalcon\\Image\\Adapter ` ... public **getWidth** () inherited from :doc:`Phalcon\\Image\\Adapter ` Image width public **getHeight** () inherited from :doc:`Phalcon\\Image\\Adapter ` Image height public **getType** () inherited from :doc:`Phalcon\\Image\\Adapter ` Image type Driver dependent public **getMime** () inherited from :doc:`Phalcon\\Image\\Adapter ` Image mime type public **resize** ([*mixed* $width], [*mixed* $height], [*mixed* $master]) inherited from :doc:`Phalcon\\Image\\Adapter ` Resize the image to the given size public **liquidRescale** (*mixed* $width, *mixed* $height, [*mixed* $deltaX], [*mixed* $rigidity]) inherited from :doc:`Phalcon\\Image\\Adapter ` This method scales the images using liquid rescaling method. Only support Imagick public **crop** (*mixed* $width, *mixed* $height, [*mixed* $offsetX], [*mixed* $offsetY]) inherited from :doc:`Phalcon\\Image\\Adapter ` Crop an image to the given size public **rotate** (*mixed* $degrees) inherited from :doc:`Phalcon\\Image\\Adapter ` Rotate the image by a given amount public **flip** (*mixed* $direction) inherited from :doc:`Phalcon\\Image\\Adapter ` Flip the image along the horizontal or vertical axis public **sharpen** (*mixed* $amount) inherited from :doc:`Phalcon\\Image\\Adapter ` Sharpen the image by a given amount public **reflection** (*mixed* $height, [*mixed* $opacity], [*mixed* $fadeIn]) inherited from :doc:`Phalcon\\Image\\Adapter ` Add a reflection to an image public **watermark** (:doc:`Phalcon\\Image\\Adapter ` $watermark, [*mixed* $offsetX], [*mixed* $offsetY], [*mixed* $opacity]) inherited from :doc:`Phalcon\\Image\\Adapter ` Add a watermark to an image with the specified opacity public **text** (*mixed* $text, [*mixed* $offsetX], [*mixed* $offsetY], [*mixed* $opacity], [*mixed* $color], [*mixed* $size], [*mixed* $fontfile]) inherited from :doc:`Phalcon\\Image\\Adapter ` Add a text to an image with a specified opacity public **mask** (:doc:`Phalcon\\Image\\Adapter ` $watermark) inherited from :doc:`Phalcon\\Image\\Adapter ` Composite one image onto another public **background** (*mixed* $color, [*mixed* $opacity]) inherited from :doc:`Phalcon\\Image\\Adapter ` Set the background color of an image public **blur** (*mixed* $radius) inherited from :doc:`Phalcon\\Image\\Adapter ` Blur image public **pixelate** (*mixed* $amount) inherited from :doc:`Phalcon\\Image\\Adapter ` Pixelate image public **save** ([*mixed* $file], [*mixed* $quality]) inherited from :doc:`Phalcon\\Image\\Adapter ` Save the image public **render** ([*mixed* $ext], [*mixed* $quality]) inherited from :doc:`Phalcon\\Image\\Adapter ` Render the image and return the binary string