PHP Class Image, opencart

Author: Tekriti Software (www.TekritiSoftware.com)
Inheritance: extends Content
ファイルを表示 Open project: opencart/opencart Class Usage Examples

Public Methods

Method Description
__construct ( $file )
crop ( $top_x, $top_y, $bottom_x, $bottom_y )
getBits ( )
getFile ( )
getHeight ( )
getImage ( )
getMime ( )
getWidth ( )
resize ( $width, $height, $default = '' )
rotate ( $degree, $color = 'FFFFFF' )
save ( $file, $quality = 90 )
watermark ( $watermark, $position = 'bottomright' )

Private Methods

Method Description
filter ( )
html2rgb ( $color )
merge ( $merge, $x, $y, $opacity = 100 )
text ( $text, $x, $y, $size = 5, $color = '000000' )

Method Details

__construct() public method

public __construct ( $file )

crop() public method

public crop ( $top_x, $top_y, $bottom_x, $bottom_y )

getBits() public method

public getBits ( )

getFile() public method

public getFile ( )

getHeight() public method

public getHeight ( )

getImage() public method

public getImage ( )

getMime() public method

public getMime ( )

getWidth() public method

public getWidth ( )

resize() public method

public resize ( $width, $height, $default = '' )

rotate() public method

public rotate ( $degree, $color = 'FFFFFF' )

save() public method

public save ( $file, $quality = 90 )

watermark() public method

public watermark ( $watermark, $position = 'bottomright' )