Class Image
Basic manipulation with images.
$image = Image::fromFile('nette.jpg'); $image->resize(150, 100); $image->sharpen(); $image->send();
- Nette\Object
- Nette\Image
public static
array
|
|
public static
|
|
public static
mixed
|
|
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(
Puts another image into this image. |
public
boolean
|
|
public
string
|
|
public
string
|
|
public
boolean
|
|
public
mixed
|
|
public
|
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
array
|
|
public
integer
|
|
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
integer
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
integer |
SHRINK_ONLY
|
1 |
#
|
integer |
STRETCH
|
2 |
#
|
integer |
FIT
|
0 |
#
|
integer |
FILL
|
4 |
#
|
integer |
EXACT
|
8 |
#
|
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;" |
|
integer |
ENLARGE
|
0 |
public read-only
integer
|
$width | |
public read-only
integer
|
$height | |
public read-only
resource
|
$imageResource |
$reflection
|