多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Abstract class Phalcon\\Image\\Adapter # Abstract class **Phalcon\\Image\\Adapter** All image adapters must use this class ### Methods public **getImage** () ... public **getRealpath** () ... public **getWidth** () Image width public **getHeight** () Image height public **getType** () Image type Driver dependent public **getMime** () Image mime type public **resize** (\[*unknown* $width\], \[*unknown* $height\], \[*unknown* $master\]) Resize the image to the given size public **liquidRescale** (*unknown* $width, *unknown* $height, \[*unknown* $deltaX\], \[*unknown* $rigidity\]) This method scales the images using liquid rescaling method. Only support Imagick public **crop** (*unknown* $width, *unknown* $height, \[*unknown* $offsetX\], \[*unknown* $offsetY\]) Crop an image to the given size public **rotate** (*unknown* $degrees) Rotate the image by a given amount public **flip** (*unknown* $direction) Flip the image along the horizontal or vertical axis public **sharpen** (*unknown* $amount) Sharpen the image by a given amount public **reflection** (*unknown* $height, \[*unknown* $opacity\], \[*unknown* $fadeIn\]) Add a reflection to an image public **watermark** (*unknown* $watermark, \[*unknown* $offsetX\], \[*unknown* $offsetY\], \[*unknown* $opacity\]) Add a watermark to an image with the specified opacity public **text** (*unknown* $text, \[*unknown* $offsetX\], \[*unknown* $offsetY\], \[*unknown* $opacity\], \[*unknown* $color\], \[*unknown* $size\], \[*unknown* $fontfile\]) Add a text to an image with a specified opacity public **mask** (*unknown* $watermark) Composite one image onto another public **background** (*unknown* $color, \[*unknown* $opacity\]) Set the background color of an image public **blur** (*unknown* $radius) Blur image public **pixelate** (*unknown* $amount) Pixelate image public **save** (\[*unknown* $file\], \[*unknown* $quality\]) Save the image public **render** (\[*unknown* $ext\], \[*unknown* $quality\]) Render the image and return the binary string | - [索引](# "总目录") - [下一页](# "Class Phalcon\Image\Adapter\Imagick") | - [上一页](# "Class Phalcon\Image") | - [API Indice](#) »