\Org_Heigl\Ghostscript\DevicePng

This class defines interfaces for the PNG-Driver family for Ghostscript

Summary

Methods
Properties
Constants
getDevice()
setDevice()
getParameterString()
setBackgroundColor()
getBackgroundColor()
getFileEnding()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getDevice()

getDevice() : string

Get the name of the device as Ghostscript expects it

Returns

string

setDevice()

setDevice(string  $device) : \Org_Heigl\Ghostscript\Device\Png

Set the device

It can be one of 'pngalpha', 'png16m', 'png256', 'png16', 'pnggray' or 'pngmono'.

If the string does not match we use 'pngalpha' as default

Parameters

string $device

Returns

\Org_Heigl\Ghostscript\Device\Png

getParameterString()

getParameterString() : string

Get the complete parameter string for this device

Returns

string

setBackgroundColor()

setBackgroundColor(string  $color) : \Org_Heigl\Ghostscript\Device\Png

Set the Background-Color for the Alpha-PNG

This can be any HEX-Color-definition WITHOUT the leading '#'

Parameters

string $color

Returns

\Org_Heigl\Ghostscript\Device\Png

getBackgroundColor()

getBackgroundColor() : string

Get the BackgroundColor

Returns

string

getFileEnding()

getFileEnding() : string

Get the file ending

Returns

string