Constant summary
Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( resource resource , bool keepHandleAlive = false ) |
public | proportionalResize ( int width , int height , string autoCropMode = null ) |
public static | getAutoCropModes ( ) |
public | crop ( int startX , int startY , int destWidth , int destHeight ) |
public | watermark ( ImageResource watermark , int watermarkPos = 4 , int watermarkMargin = 10 ) |
protected | calcResampleSizes ( bool crop = false ) |
public int | getWidth ( ) |
public int | getHeight ( ) |
public resource | getHandle ( ) |
public | destroy ( ) |
public | __destruct ( ) |
Constants in detail
-
AUTO_CROP_MODE_CENTER
const AUTO_CROP_MODE_CENTER
-
AUTO_CROP_MODE_TOP
const AUTO_CROP_MODE_TOP
Methods in detail
-
__construct
public __construct ( resource resource , bool keepHandleAlive = false ) -
proportionalResize
public proportionalResize ( int width , int height , string autoCropMode = null )param
int widthint heightbool cropAllowed -
getAutoCropModes
public static getAutoCropModes ( ) -
crop
public crop ( int startX , int startY , int destWidth , int destHeight )param
int startXint startYint destWidthint destHeight -
watermark
adds a watermark to the imageparam
-
calcResampleSizes
protected calcResampleSizes ( bool crop = false )param
int destWidthint destHeightint cropWidthint cropHeightint xint ybool crop -
getWidth
int public getWidth ( )return
int -
getHeight
int public getHeight ( )return
int -
getHandle
resource public getHandle ( )return
n2n\io\img\resource -
destroy
public destroy ( ) -
__destruct
public __destruct ( )
param