Class Image
Basic manipulation with images.
$image = Image::fromFile('nette.jpg'); $image->resize(150, 100); $image->sharpen(); $image->send();
- Nette\Object
- Nette\Image
Direct known subclasses
Nette\ImageMagick
public static
array
|
|
public static
|
|
public static
|
#
fromString( string $s, mixed & $format = NULL )
Create a new image from the image stream in the string. |
public static
|
|
public
|
|
public
integer
|
|
public
integer
|
|
protected
|
|
public
resource
|
|
public
|
|
public static
array
|
#
calculateSize( mixed $srcWidth, mixed $srcHeight, mixed $newWidth, mixed $newHeight, integer $flags =
Calculates dimensions of resized image. |
public
|
|
public static
array
|
#
calculateCutout( mixed $srcWidth, mixed $srcHeight, mixed $left, mixed $top, mixed $newWidth, mixed $newHeight )
Calculates dimensions of cutout in image. |
public
|
|
public
|
#
place( Nette\Image $image, mixed $left = 0, mixed $top = 0, integer $opacity = 100 )
Puts another image into this image. |
public
boolean
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
mixed
|
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
integer
|
ENLARGE
|
1 |
#
|
integer
|
STRETCH
|
2 |
#
|
integer
|
FIT
|
0 |
#
|
integer
|
FILL
|
4 |
#
|
integer
|
JPEG
|
IMAGETYPE_JPEG |
|
integer
|
PNG
|
IMAGETYPE_PNG |
|
integer
|
GIF
|
IMAGETYPE_GIF |
|
string
|
EMPTY_GIF
|
"GIF89a\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00!\xf9\x04\x01\x00\x00\x00\x00,\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;" |
public static
boolean
|
$useImageMagick | FALSE |