# ImageIm

class ImageIm extends Image

## Constants

BRANDING_TOP |
BRANDING_TOP_RIGHT |
BRANDING_RIGHT |
BRANDING_BOTTOM_RIGHT |
BRANDING_BOTTOM |
BRANDING_BOTTOM_LEFT |
BRANDING_LEFT |
BRANDING_TOP_LEFT |
BRANDING_CENTER |

## Properties

protected | $_image |  | from Image
protected | $_isResized |  | from Image
protected | $_isBranded |  | from Image
| $name |  | from Image
| $path |  | from Image
| $extension |  | from Image
| $filepath |  | from Image
| $imageinfos |  | from Image
| $newWidth |  | from Image
| $newHeight |  | from Image
| $mainWidth |  | from Image
| $mainHeight |  | from Image
| $quality |  | from Image

## Methods

__construct($filepath)

No description

multitype:number
_calcWatermarkPosition(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $position, int $padding)

Calculates the Watermark position

from Image
multitype:number
_calcWatermarkOffset(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $percent = 30)

Calculates the Watermark offset

from Image
__destruct()

No description

resize(int $width, int $height, boolean $useContainer = false, string $backgroundColor = null, int $quality = 80)

(non-PHPdoc)

watermark(string $filepath, int $position, int $percent = 30, float $opacity = 1.0, int $padding)

(non-PHPdoc)

save(string $newFilepath)

(non-PHPdoc)

destroy()

(non-PHPdoc)

## Details

###
at line 13
`__construct($filepath)`

#### Parameters

| $filepath |

###
in Image at line 74
`protected multitype:number _calcWatermarkPosition(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $position, int $padding)`

Calculates the Watermark position

#### Parameters

int | $image_width |
int | $image_height |
int | $watermark_width |
int | $watermark_height |
int | $position |
int | $padding |

#### Return Value

multitype:number |

###
in Image at line 135
`protected multitype:number _calcWatermarkOffset(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $percent = 30)`

Calculates the Watermark offset

#### Parameters

int | $image_width |
int | $image_height |
int | $watermark_width |
int | $watermark_height |
int | $percent |

#### Return Value

multitype:number |

###
at line 29
`__destruct()`

###
at line 38
`resize(int $width, int $height, boolean $useContainer = false, string $backgroundColor = null, int $quality = 80)`

(non-PHPdoc)

#### Parameters

int | $width |
int | $height |
boolean | $useContainer |
string | $backgroundColor |
int | $quality |

#### See also

\jtl\Connector\Core\Drawing\IDrawing::resize() |

###
at line 87
`watermark(string $filepath, int $position, int $percent = 30, float $opacity = 1.0, int $padding)`

(non-PHPdoc)

#### Parameters

string | $filepath |
int | $position |
int | $percent |
float | $opacity |
int | $padding |

#### See also

\jtl\Connector\Core\Drawing\IDrawing::watermark() |

###
at line 124
`save(string $newFilepath)`

(non-PHPdoc)

#### Parameters

string | $newFilepath |

#### See also

\jtl\Connector\Core\Drawing\IDrawing::save() |

###
at line 141
`destroy()`

(non-PHPdoc)

#### See also

\jtl\Connector\Core\Drawing\IDrawing::destroy() |