PHP Interface Grafika\ImageInterface

Afficher le fichier Open project: kosinix/grafika Interface Usage Examples

Méthodes publiques

Méthode Description
blob ( string | ImageType $type ) Output a binary raw dump of an image in a specified format.
createBlank ( integer $width = 1, integer $height = 1 ) : grafika\ImageInterface Create a blank image.
createFromCore ( resource | Imagick $core ) : grafika\ImageInterface Create Image from core.
createFromFile ( string $imageFile ) : grafika\ImageInterface Create Image from image file.
getCore ( ) : resource | Imagick Get Image core.
getHeight ( ) : integer
getImageFile ( ) : string
getType ( ) : string
getWidth ( ) : integer
isAnimated ( ) : boolean Returns animated flag.

Method Details

blob() public méthode

Output a binary raw dump of an image in a specified format.
public blob ( string | ImageType $type )
$type string | ImageType Image format of the dump. See Grafika\ImageType for supported formats.

createBlank() public static méthode

Create a blank image.
public static createBlank ( integer $width = 1, integer $height = 1 ) : grafika\ImageInterface
$width integer Width of image in pixels.
$height integer Height of image in pixels.
Résultat grafika\ImageInterface Instance of image.

createFromCore() public static méthode

Create Image from core.
public static createFromCore ( resource | Imagick $core ) : grafika\ImageInterface
$core resource | Imagick GD resource for GD editor or Imagick instance for Imagick editor
Résultat grafika\ImageInterface Instance of image.

createFromFile() public static méthode

Create Image from image file.
public static createFromFile ( string $imageFile ) : grafika\ImageInterface
$imageFile string Path to image file.
Résultat grafika\ImageInterface Instance of image.

getCore() public méthode

Get Image core.
public getCore ( ) : resource | Imagick
Résultat resource | Imagick GD resource or Imagick instance

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer Height in pixels.

getImageFile() public méthode

public getImageFile ( ) : string
Résultat string File path to image if Image was created from an image file.

getType() public méthode

public getType ( ) : string
Résultat string Type of image. See ImageType.

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer Width in pixels.

isAnimated() public méthode

Returns animated flag.
public isAnimated ( ) : boolean
Résultat boolean True if animated GIF or false otherwise.