Gd
in package
Image Gd factory class
Tags
Table of Contents
Methods
- create() : Gd
- Create a new image resource and load it into a Gd object
- createIndex() : Gd
- Create a new indexed image resource and load it into a Gd object
- getAvailableAdapters() : array<string|int, mixed>
- Get the available image adapters
- isAvailable() : bool
- Determine if the GD adapter is available
- load() : Gd
- Load the image resource from the existing image file into a Gd object
- loadFromString() : Gd
- Load the image resource from data into a Gd object
Methods
create()
Create a new image resource and load it into a Gd object
public
static create(int $width, int $height[, string|null $image = null ]) : Gd
Parameters
- $width : int
- $height : int
- $image : string|null = null
Return values
GdcreateIndex()
Create a new indexed image resource and load it into a Gd object
public
static createIndex(int $width, int $height[, string|null $image = null ]) : Gd
Parameters
- $width : int
- $height : int
- $image : string|null = null
Tags
Return values
GdgetAvailableAdapters()
Get the available image adapters
public
static getAvailableAdapters() : array<string|int, mixed>
Return values
array<string|int, mixed>isAvailable()
Determine if the GD adapter is available
public
static isAvailable() : bool
Return values
boolload()
Load the image resource from the existing image file into a Gd object
public
static load(string $image) : Gd
Parameters
- $image : string
Return values
GdloadFromString()
Load the image resource from data into a Gd object
public
static loadFromString(string $data[, string|null $name = null ]) : Gd
Parameters
- $data : string
- $name : string|null = null