PHPExcel_Worksheet_BaseDrawing

category | PHPExcel
package | PHPExcel_Worksheet
copyright | Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

### Methods

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

    __clone()

## Create a new PHPExcel_Worksheet_BaseDrawing

    __construct()

## Get Coordinates

    getCoordinates() : string

### Returns

`string`

## Get Description

    getDescription() : string

### Returns

`string`

## Get hash code

    getHashCode() : string

### Returns

`string`Hash code

## Get Height

    getHeight() : int

### Returns

`int`

## Get image index

    getImageIndex() : int

### Returns

`int`

## Get Name

    getName() : string

### Returns

`string`

## Get OffsetX

    getOffsetX() : int

### Returns

`int`

## Get OffsetY

    getOffsetY() : int

### Returns

`int`

## Get ResizeProportional

    getResizeProportional() : boolean

### Returns

`boolean`

## Get Rotation

    getRotation() : int

### Returns

`int`

## Get Shadow

    getShadow() : \PHPExcel_Worksheet_Drawing_Shadow

### Returns

`\PHPExcel_Worksheet_Drawing_Shadow`

## Get Width

    getWidth() : int

### Returns

`int`

## Get Worksheet

    getWorksheet() : \PHPExcel_Worksheet

### Returns

`\PHPExcel_Worksheet`

## Set Coordinates

    setCoordinates(string $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`string`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set Description

    setDescription(string $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`string`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set Height

    setHeight(int $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`int`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set Name

    setName(string $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`string`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set OffsetX

    setOffsetX(int $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`int`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set OffsetY

    setOffsetY(int $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`int`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set ResizeProportional

    setResizeProportional(boolean $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`boolean`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set Rotation

    setRotation(int $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`int`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set Shadow

    setShadow(\PHPExcel_Worksheet_Drawing_Shadow $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`\PHPExcel_Worksheet_Drawing_Shadow`

### Exceptions

`\PHPExcel_Exception` |

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set Width

    setWidth(int $pValue) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`int`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

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

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

author | Vincent@luo MSN:kele_100@hotmail.com

### Parameters

#### $width

`int`

#### $height

`int`

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

## Set Worksheet

    setWorksheet(\PHPExcel_Worksheet $pValue, bool $pOverrideOld) : \PHPExcel_Worksheet_BaseDrawing

### Parameters

#### $pValue

`\PHPExcel_Worksheet`

#### $pOverrideOld

`bool`

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

### Exceptions

`\PHPExcel_Exception` |

### Returns

`\PHPExcel_Worksheet_BaseDrawing`

### Properties

##

    $_coordinates : string

##

    $_description : string

##

    $_height : int

##

    $_name : string

##

    $_offsetX : int

##

    $_offsetY : int

##

    $_resizeProportional : boolean

##

    $_rotation : int

##

    $_shadow : \PHPExcel_Worksheet_Drawing_Shadow

##

    $_width : int

##

    $_worksheet : \PHPExcel_Worksheet

##

    $_imageCounter : int

##

    $_imageIndex : int