Class Image
Onion Framework - Spracovanie obrázkov
Copyright (c) 2011 Jano Gašpar (http://webstranky.net)
Package:
Onion::Utils
Copyright: Copyright (c) 2011 Jano Gašpar
Author: Jano Gašpar
Located at Utils/Image.php
Copyright: Copyright (c) 2011 Jano Gašpar
Author: Jano Gašpar
Located at Utils/Image.php
public static
object
|
|
public static
|
|
public
object
|
|
public
object
|
#
crop(
integer
$width,
integer
$height,
integer
$left = NULL,
integer
$top = NULL
)
Orezanie obrázka
Orezanie obrázka Parameters
Returnsobject Image pre fluent interface |
public
object
|
|
public
object
|
|
public
object
|
#
to_grayscale(
)
Prevod obrázka na čiernobiely
Prevod obrázka na čiernobiely Returnsobject Image pre fluent interface |
public
object
|
|
public
|
|
public
|
|
public
|
|
private
|
|
private
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
string
|
|
private
array
|
#
calculate_new_size(
integer
$new_width,
integer
$new_height,
integer
$flags
)
Výpočet nových rozmerov obrázka
Výpočet nových rozmerov obrázka Parameters
Returnsarray pole s novými rozmermi |
private
array
|
#
calculate_crop(
integer
$width,
integer
$height,
integer
$left = NULL,
integer
$top = NULL
)
Výpočet polohy a rozmerov orezu
Výpočet polohy a rozmerov orezu Parameters
Returnsarray pole s novými rozmermi a polohou orezu |
private
array
|
#
calculate_watermark_position(
integer
$left,
integer
$top,
integer
$watermark_width,
integer
$watermark_height
)
Výpočet polohy vodotlače
Výpočet polohy vodotlače Parameters
Returnsarray pole s polohou vodotlače |
private
|
integer
|
FIT
|
1 |
|
integer
|
FILL
|
2 |
|
integer
|
HEIGHT
|
4 |
|
integer
|
WIDTH
|
8 |
|
integer
|
ENLARGE
|
16 |
|
integer
|
STRETCH
|
32 |
private
resource
|
$image |
|
|
private
string
|
$file |
|
|
private
integer
|
$width |
|
|
private
integer
|
$height |
|
|
private
string
|
$type |
|
|
private
integer
|
$quality | 85 |