Image
in package
Image factory class
Tags
Table of Contents
- createGd() : Gd
- Create a new image resource and load it into a Gd object
- createGdIndex() : Gd
- Create a new indexed image resource and load it into a Gd object
- createImagick() : Imagick
- Create a new image resource and load it into a Imagick object
- createImagickIndex() : Imagick
- Create a new indexed image resource and load it into a Imagick object
- getAvailableAdapters() : array<string|int, mixed>
- Get the available image adapters
- isAvailable() : bool
- Determine if the adapter is available
- loadGd() : Gd
- Load the image resource from the existing image file into a Gd object
- loadGdFromString() : Gd
- Load the image resource from data into a Gd object
- loadImagick() : Imagick
- Load the image resource from the existing image file into a Imagick object
- loadImagickFromString() : Imagick
- Load the image resource from data into a Imagick object
Methods
createGd()
Create a new image resource and load it into a Gd object
public
static createGd(int $width, int $height[, string $image = null ]) : Gd
Parameters
- $width : int
- $height : int
- $image : string = null
Return values
Gd —createGdIndex()
Create a new indexed image resource and load it into a Gd object
public
static createGdIndex(int $width, int $height[, string $image = null ]) : Gd
Parameters
- $width : int
- $height : int
- $image : string = null
Return values
Gd —createImagick()
Create a new image resource and load it into a Imagick object
public
static createImagick(int $width, int $height[, string $image = null ]) : Imagick
Parameters
- $width : int
- $height : int
- $image : string = null
Return values
Imagick —createImagickIndex()
Create a new indexed image resource and load it into a Imagick object
public
static createImagickIndex(int $width, int $height[, string $image = null ]) : Imagick
Parameters
- $width : int
- $height : int
- $image : string = null
Return values
Imagick —getAvailableAdapters()
Get the available image adapters
public
static getAvailableAdapters() : array<string|int, mixed>
Return values
array<string|int, mixed> —isAvailable()
Determine if the adapter is available
public
static isAvailable(string $adapter) : bool
Parameters
- $adapter : string
Return values
bool —loadGd()
Load the image resource from the existing image file into a Gd object
public
static loadGd(string $image) : Gd
Parameters
- $image : string
Return values
Gd —loadGdFromString()
Load the image resource from data into a Gd object
public
static loadGdFromString(string $data[, string $name = null ]) : Gd
Parameters
- $data : string
- $name : string = null
Return values
Gd —loadImagick()
Load the image resource from the existing image file into a Imagick object
public
static loadImagick(string $image) : Imagick
Parameters
- $image : string
Return values
Imagick —loadImagickFromString()
Load the image resource from data into a Imagick object
public
static loadImagickFromString(string $data[, string $name = null ]) : Imagick
Parameters
- $data : string
- $name : string = null