PHP Class PhpOffice\PhpPresentation\Shape\Drawing\Gd

Inheritance: extends AbstractDrawingAdapter
Show file Open project: phpoffice/phppowerpoint Class Usage Examples

Protected Properties

Property Type Description
$imageResource resource Image resource
$mimeType string Mime type
$renderingFunction string Rendering function
$uniqueName string Unique name

Public Methods

Method Description
__construct ( ) Gd constructor
getContents ( ) : string
getExtension ( ) : string
getImageResource ( ) : resource Get image resource
getIndexedFilename ( ) : string
getMimeType ( ) : string Get mime type
getRenderingFunction ( ) : string Get rendering function
setImageResource ( $value = null ) Set image resource
setMimeType ( string $value = self::MIMETYPE_DEFAULT ) Set mime type
setRenderingFunction ( string $value = self::RENDERING_DEFAULT ) Set rendering function

Method Details

__construct() public method

Gd constructor
public __construct ( )

getContents() public method

public getContents ( ) : string
return string

getExtension() public method

public getExtension ( ) : string
return string

getImageResource() public method

Get image resource
public getImageResource ( ) : resource
return resource

getIndexedFilename() public method

public getIndexedFilename ( ) : string
return string

getMimeType() public method

Get mime type
public getMimeType ( ) : string
return string

getRenderingFunction() public method

Get rendering function
public getRenderingFunction ( ) : string
return string

setImageResource() public method

Set image resource
public setImageResource ( $value = null )
$value resource

setMimeType() public method

Set mime type
public setMimeType ( string $value = self::MIMETYPE_DEFAULT )
$value string

setRenderingFunction() public method

Set rendering function
public setRenderingFunction ( string $value = self::RENDERING_DEFAULT )
$value string

Property Details

$imageResource protected property

Image resource
protected resource $imageResource
return resource

$mimeType protected property

Mime type
protected string $mimeType
return string

$renderingFunction protected property

Rendering function
protected string $renderingFunction
return string

$uniqueName protected property

Unique name
protected string $uniqueName
return string