public class ImageConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImageConfig.ImageParameters |
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger
create a static logger.
|
Modifier and Type | Method and Description |
---|---|
static int |
alignToGrid(int size,
int grid) |
Color |
getAdjustColor(Device device,
String filter,
String area) |
Color |
getAlpha(Device device,
String filter,
String area) |
Color |
getBGColor(Device device,
String filter,
String area) |
float |
getBrightness(Device device,
String filter,
String area) |
float |
getConstrast(Device device,
String filter,
String area) |
int |
getDashed(Device device,
String filter,
String area) |
String |
getFileExtension(Device device,
String filter,
String area) |
List<String> |
getFilters() |
int |
getFolderHeight(Device device,
String filter,
String area) |
int |
getFolderThumbHeight(Device device,
String filter,
String area) |
int |
getFolderThumbWidth(Device device,
String filter,
String area) |
int |
getFolderWidth(Device device,
String filter,
String area) |
int |
getGridHeight(Device device,
String filter,
String area) |
int |
getGridWidth(Device device,
String filter,
String area) |
int |
getHeight(Device device,
String filter,
String area) |
static ImageConfig |
getInstance(GlobalContext globalContext,
javax.servlet.http.HttpSession session,
Template template) |
String |
getLayer(Device device,
String filter,
String area) |
int |
getMarginBottom(Device device,
String filter,
String area) |
int |
getMarginLeft(Device device,
String filter,
String area) |
int |
getMarginRigth(Device device,
String filter,
String area) |
int |
getMarginTop(Device device,
String filter,
String area) |
int |
getMaxHeight(Device device,
String filter,
String area) |
int |
getMaxWidth(Device device,
String filter,
String area) |
static ImageConfig |
getNewInstance(GlobalContext globalContext,
javax.servlet.http.HttpSession session,
Template template) |
ProjectionConfig |
getProjection(GlobalContext globalContext,
Template template,
Device device,
String filter,
String area) |
ConfigurationProperties |
getProperties() |
Color |
getReplaceAlpha(Device device,
String filter,
String area) |
int |
getResizeDashed(Device device,
String filter,
String area) |
int |
getSepiaIntensity(Device device,
String filter,
String area) |
Color |
getTrimColor(Device device,
String filter,
String area)
return a bg color, the border with this color will be removed.
|
int |
getTrimTolerance(Device device,
String filter,
String area)
return tolerance for trim (0 >> 255*3)
|
int |
getWeb2Height(Device device,
String filter,
String area) |
int |
getWeb2Separation(Device device,
String filter,
String area) |
int |
getWidth(Device device,
String filter,
String area) |
double |
getZoom(Device device,
String filter,
String area) |
boolean |
isAddBorder(Device device,
String filter,
String area) |
boolean |
isAddImageBorder(Device device,
String filter,
String area) |
boolean |
isBackGroudColor(Device device,
String filter,
String area) |
boolean |
isCropResize(Device device,
String filter,
String area) |
boolean |
isCrystallize(Device device,
String filter,
String area) |
boolean |
isEdge(Device device,
String filter,
String area) |
boolean |
isEmboss(Device device,
String filter,
String area) |
boolean |
isFocusZone(Device device,
String filter,
String area) |
boolean |
isFolderThumbShuffle(Device device,
String filter,
String area) |
boolean |
isFraming(Device device,
String filter,
String area) |
boolean |
isGlow(Device device,
String filter,
String area) |
boolean |
isGrayscale(Device device,
String filter,
String area) |
boolean |
isGrayscaleAveraging(Device device,
String filter,
String area) |
boolean |
isGrayscaleDesaturation(Device device,
String filter,
String area) |
boolean |
isGrayscaleLuminosity(Device device,
String filter,
String area) |
boolean |
isHighQuality(Device device,
String filter,
String area) |
boolean |
isHorizontalFlip(Device device,
String filter,
String area) |
boolean |
isIndexed(Device device,
String filter,
String area) |
boolean |
isRoundCorner(Device device,
String filter,
String area) |
boolean |
isVerticalFlip(Device device,
String filter,
String area) |
boolean |
isWeb2(Device device,
String filter,
String area) |
static void |
main(String[] args) |
protected static Logger logger
public static ImageConfig getNewInstance(GlobalContext globalContext, javax.servlet.http.HttpSession session, Template template)
public static ImageConfig getInstance(GlobalContext globalContext, javax.servlet.http.HttpSession session, Template template)
public static int alignToGrid(int size, int grid)
public Color getTrimColor(Device device, String filter, String area)
device
- filter
- area
- public int getTrimTolerance(Device device, String filter, String area)
device
- filter
- area
- public boolean isGrayscaleLuminosity(Device device, String filter, String area)
public boolean isGrayscaleDesaturation(Device device, String filter, String area)
public ProjectionConfig getProjection(GlobalContext globalContext, Template template, Device device, String filter, String area)
public ConfigurationProperties getProperties()
public static void main(String[] args) throws IOException
IOException
Copyright © 2012-2018. All Rights Reserved.