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

$_name

$_name : string

Name

Type

string

$_description

$_description : string

Description

Type

string

$_coordinates

$_coordinates : string

Coordinates

Type

string

$_offsetX

$_offsetX : integer

Offset X

Type

integer

$_offsetY

$_offsetY : integer

Offset Y

Type

integer

$_width

$_width : integer

Width

Type

integer

$_height

$_height : integer

Height

Type

integer

$_resizeProportional

$_resizeProportional : boolean

Proportional resize

Type

boolean

$_rotation

$_rotation : integer

Rotation

Type

integer

$_imageCounter

$_imageCounter : integer

Image counter

Type

integer

$_imageIndex

$_imageIndex : integer

Image index

Type

integer

$_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 PHPExcel_Worksheet_MemoryDrawing

getImageIndex()

getImageIndex() : integer

Get image index

Returns

integer

getName()

getName() : string

Get Name

Returns

string

getDescription()

getDescription() : string

Get Description

Returns

string

setDescription()

setDescription(string  $pValue = '') : \PHPExcel_Worksheet_BaseDrawing

Set Description

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_BaseDrawing

getWorksheet()

getWorksheet() : \PHPExcel_Worksheet

Get Worksheet

Returns

\PHPExcel_Worksheet

setWorksheet()

setWorksheet(\PHPExcel_Worksheet  $pValue = null, boolean  $pOverrideOld = false) : \PHPExcel_Worksheet_BaseDrawing

Set Worksheet

Parameters

\PHPExcel_Worksheet $pValue
boolean $pOverrideOld

If a Worksheet has already been assigned, overwrite it and remove image from old Worksheet?

Throws

\PHPExcel_Exception

Returns

\PHPExcel_Worksheet_BaseDrawing

getCoordinates()

getCoordinates() : string

Get Coordinates

Returns

string

setCoordinates()

setCoordinates(string  $pValue = 'A1') : \PHPExcel_Worksheet_BaseDrawing

Set Coordinates

Parameters

string $pValue

Returns

\PHPExcel_Worksheet_BaseDrawing

getOffsetX()

getOffsetX() : integer

Get OffsetX

Returns

integer

setOffsetX()

setOffsetX(integer  $pValue) : \PHPExcel_Worksheet_BaseDrawing

Set OffsetX

Parameters

integer $pValue

Returns

\PHPExcel_Worksheet_BaseDrawing

getOffsetY()

getOffsetY() : integer

Get OffsetY

Returns

integer

setOffsetY()

setOffsetY(integer  $pValue) : \PHPExcel_Worksheet_BaseDrawing

Set OffsetY

Parameters

integer $pValue

Returns

\PHPExcel_Worksheet_BaseDrawing

getWidth()

getWidth() : integer

Get Width

Returns

integer

getHeight()

getHeight() : integer

Get Height

Returns

integer

setWidthAndHeight()

setWidthAndHeight(integer  $width, integer  $height) : \PHPExcel_Worksheet_BaseDrawing

Set width and height with proportional resize Example: <code> $objDrawing->setResizeProportional(true); $objDrawing->setWidthAndHeight(160,120); </code>

Parameters

integer $width
integer $height

Returns

\PHPExcel_Worksheet_BaseDrawing

getResizeProportional()

getResizeProportional() : boolean

Get ResizeProportional

Returns

boolean

setResizeProportional()

setResizeProportional(boolean  $pValue = true) : \PHPExcel_Worksheet_BaseDrawing

Set ResizeProportional

Parameters

boolean $pValue

Returns

\PHPExcel_Worksheet_BaseDrawing

getRotation()

getRotation() : integer

Get Rotation

Returns

integer

setRotation()

setRotation(integer  $pValue) : \PHPExcel_Worksheet_BaseDrawing

Set Rotation

Parameters

integer $pValue

Returns

\PHPExcel_Worksheet_BaseDrawing

getHashCode()

getHashCode() : string

Get hash code

Returns

string —

Hash code

__clone()

__clone() 

Implement PHP __clone to create a deep clone, not just a shallow copy.

getImageResource()

getImageResource() : resource

Get image resource

Returns

resource

setImageResource()

setImageResource(  $value = null) : \PHPExcel_Worksheet_MemoryDrawing

Set image resource

Parameters

$value

resource

Returns

\PHPExcel_Worksheet_MemoryDrawing

getRenderingFunction()

getRenderingFunction() : string

Get rendering function

Returns

string

setRenderingFunction()

setRenderingFunction(string  $value = \PHPExcel_Worksheet_MemoryDrawing::RENDERING_DEFAULT) : \PHPExcel_Worksheet_MemoryDrawing

Set rendering function

Parameters

string $value

Returns

\PHPExcel_Worksheet_MemoryDrawing

getMimeType()

getMimeType() : string

Get mime type

Returns

string

setMimeType()

setMimeType(string  $value = \PHPExcel_Worksheet_MemoryDrawing::MIMETYPE_DEFAULT) : \PHPExcel_Worksheet_MemoryDrawing

Set mime type

Parameters

string $value

Returns

\PHPExcel_Worksheet_MemoryDrawing

getIndexedFilename()

getIndexedFilename() : string

Get indexed filename (using image index)

Returns

string