Method |
Description |
|
__construct ( string $file ) |
ImageInterface constructor. |
|
crop ( integer $width, integer $height, integer $offsetX, integer $offsetY ) : static |
|
|
getHeight ( ) : integer |
Image height |
|
getWidth ( ) : integer |
Image width |
|
resize ( integer $width, integer $height ) : static |
Resize the image by a given width and height |
|
resizeCropCenter ( integer $width, integer $height ) : static |
Resize the image by a given width and height |
|
rotate ( integer $degrees, integer $background = 16777215, float $alpha = 1 ) : static |
Rotate the image by a given degrees |
|
save ( string $file, integer $quality = 80 ) |
|
|
scale ( float $ratio ) : static |
Scale the image by a given ratio |
|
scaleFixedHeight ( integer $height ) : static |
Scale the image by a given height |
|
scaleFixedWidth ( integer $width ) : static |
Scale the image by a given width |
|
text ( string $text, integer $offsetX, integer $offsetY, float $opacity = 1, integer $color, integer $size = 12, string $font_file = null ) : static |
|
|
watermark ( string $file, integer $offsetX, integer $offsetY, float $opacity = 1 ) : static |
|
|