Documentation

Gd
in package

Image Gd factory class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
3.4.0

Table of Contents

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 $image = null ]) : Gd
Parameters
$width : int
$height : int
$image : string = null
Return values
Gd

createIndex()

Create a new indexed image resource and load it into a Gd object

public static createIndex(int $width, int $height[, string $image = null ]) : Gd
Parameters
$width : int
$height : int
$image : string = null
Return values
Gd

getAvailableAdapters()

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
bool

load()

Load the image resource from the existing image file into a Gd object

public static load(string $image) : Gd
Parameters
$image : string
Return values
Gd

loadFromString()

Load the image resource from data into a Gd object

public static loadFromString(string $data[, string $name = null ]) : Gd
Parameters
$data : string
$name : string = null
Return values
Gd

Search results