ProportionalImgComposer
ProportionalImgComposer implements ImgComposer
All Implemented Interfaces:
Constant summary
Property summary
Modifier and Type | Property |
---|---|
protected | width |
protected | height |
protected | autoCropMode |
protected | scaleUpAllowed |
protected | fixedWidths |
protected | maxWidth |
protected | minWidth |
protected | sizesAttr |
Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( int width , int height , string autoCropMode = null , bool scaleUpAllowed = true ) |
public ProportionalImgComposer | toWidth ( int width ) |
public ProportionalImgComposer | widths ( int widths ) |
public ProportionalImgComposer | factors ( float factors ) |
public int | getWidth ( ) |
public int [] | getWidths ( ) |
public ImgSet | createImgSet ( File file = null , N2nContext n2nContext ) |
public ProportionalImgComposer | sizes ( string sizesAttr ) |
public ProportionalImgComposer | copy ( ) |
Constants in detail
-
MIN_SIZE_GAB
const MIN_SIZE_GAB
Properties in detail
-
width
protected width
-
height
protected height
-
autoCropMode
protected autoCropMode
-
scaleUpAllowed
protected scaleUpAllowed
-
fixedWidths
protected fixedWidths
-
maxWidth
protected maxWidth
-
minWidth
protected minWidth
-
sizesAttr
protected sizesAttr
Methods in detail
-
__construct
public __construct ( int width , int height , string autoCropMode = null , bool scaleUpAllowed = true ) -
toWidth
-
widths
-
factors
-
getWidth
int public getWidth ( )return
int -
getWidths
int public getWidths ( )return
int -
createImgSet
Specified: ImgComposerOverrides: ImgComposer::createImgSet() -
sizes
-
copy
ProportionalImgComposer public copy ( )return
param