Phalcon\Image\AdapterInterface initializer
abstract public Phalcon\Image\Adapter resize ([unknown $width], [unknown $height], [unknown $master])
Resize the image to the given size. Either the width or the height can be omitted and the image will be resized proportionally.
abstract public liquidRescale (unknown $width, unknown $height, [unknown $delta_x], [unknown $rigidity])
...
abstract public Phalcon\Image\Adapter crop (unknown $width, unknown $height, [unknown $offset_x], [unknown $offset_y])
Crop an image to the given size. Either the width or the height can be omitted and the current width or height will be used.
abstract public Phalcon\Image\Adapter rotate (unknown $degrees)
Rotate the image by a given amount.
abstract public Phalcon\Image\Adapter flip (unknown $direction)
Flip the image along the horizontal or vertical axis.
abstract public Phalcon\Image\Adapter sharpen (unknown $amount)
Sharpen the image by a given amount.
abstract public Phalcon\Image\Adapter reflection ([unknown $height], [unknown $opacity], [unknown $fade_in])
Add a reflection to an image. The most opaque part of the reflection will be equal to the opacity setting and fade out to full transparent. Alpha transparency is preserved.
abstract public Phalcon\Image\AdapterInterface watermark (unknown $watermark, [unknown $offset_x], [unknown $offset_y], [unknown $opacity])
Add a watermark to an image with a specified opacity. Alpha transparency will be preserved.
abstract public Phalcon\Image\AdapterInterface text (string $text, [unknown $offset_x], [unknown $offset_y], [unknown $opacity], [unknown $color], [unknown $size], [unknown $fontfile])
Add a text to an image with a specified opacity.
abstract public Phalcon\Image\AdapterInterface line (int $sx, int $sy, int $ex, int $ey, [string $color])
Draws a line
abstract public Phalcon\Image\AdapterInterface polygon (array $coordinates, [string $color])
Draws a polygon
<?php
$coordinates = array( array( 'x' => 4, 'y' => 6 ), array( 'x' => 8, 'y' => 10 ) );
$image->polygon($coordinates);
abstract public mask (unknown $mask)
...
abstract public Phalcon\Image\AdapterInterface background (unknown $color, [unknown $opacity])
Set the background color of an image. This is only useful for images with alpha transparency.
abstract public blur ([unknown $radius])
...
abstract public pixelate ([unknown $amount])
...
abstract public Phalcon\Image\Adapter save ([unknown $file], [unknown $opacity], [unknown $interlacing])
Save the image. If the filename is omitted, the original image will be overwritten.
abstract public Phalcon\Image\Adapter render ([unknown $type], [unknown $opacity], [unknown $interlacing])
Render the image and return the binary string.