Constants

RENDERING_DEFAULT

RENDERING_DEFAULT = 'imagepng'

RENDERING_PNG

RENDERING_PNG = 'imagepng'

RENDERING_GIF

RENDERING_GIF = 'imagegif'

RENDERING_JPEG

RENDERING_JPEG = 'imagejpeg'

MIMETYPE_DEFAULT

MIMETYPE_DEFAULT = 'image/png'

MIMETYPE_PNG

MIMETYPE_PNG = 'image/png'

MIMETYPE_GIF

MIMETYPE_GIF = 'image/gif'

MIMETYPE_JPEG

MIMETYPE_JPEG = 'image/jpeg'

Properties

$imageResource

$imageResource : resource

Image resource.

Type

resource

$renderingFunction

$renderingFunction : string

Rendering function.

Type

string

$mimeType

$mimeType : string

Mime type.

Type

string

$uniqueName

$uniqueName : string

Unique name.

Type

string

Methods

__construct()

__construct() 

Create a new MemoryDrawing.

getImageResource()

getImageResource() : resource

Get image resource.

Returns

resource

setImageResource()

setImageResource(resource  $value) : $this

Set image resource.

Parameters

resource $value

Returns

$this

getRenderingFunction()

getRenderingFunction() : string

Get rendering function.

Returns

string

setRenderingFunction()

setRenderingFunction(string  $value) : $this

Set rendering function.

Parameters

string $value

see self::RENDERING_*

Returns

$this

getMimeType()

getMimeType() : string

Get mime type.

Returns

string

setMimeType()

setMimeType(string  $value) : $this

Set mime type.

Parameters

string $value

see self::MIMETYPE_*

Returns

$this

getIndexedFilename()

getIndexedFilename() : string

Get indexed filename (using image index).

Returns

string

getHashCode()

getHashCode() : string

Get hash code.

Returns

string —

Hash code