Class ImageResizeRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.ImageResizeRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintgetFpX()Return the focal point x factor.getFpY()Return the focal point y factor.intgetImage()getMode()Returns the mode (eg.Returns the resizemode (eg.Direction for rotating the image.intgetWidth()booleanvoidsetCopyFile(boolean copyFile) voidsetCropHeight(int cropHeight) voidsetCropStartX(int cropStartX) voidsetCropStartY(int cropStartY) voidsetCropWidth(int cropWidth) voidSet the focal point x factor.voidSet the focal point y factor.voidsetHeight(int height) voidvoidSets the mode (eg.voidsetResizeMode(String resizeMode) Sets the resizemode (eg.voidsetRotate(ImageRotate rotate) Set rotate directionvoidsetTargetFormat(String targetFormat) voidsetWidth(int width)
-
Constructor Details
-
ImageResizeRequest
public ImageResizeRequest()
-
-
Method Details
-
isCopyFile
public boolean isCopyFile()- Returns:
- the copyFile
-
setCopyFile
public void setCopyFile(boolean copyFile) - Parameters:
copyFile- the copyFile to set
-
getTargetFormat
-
setTargetFormat
-
getImage
-
setImage
-
getCropHeight
public int getCropHeight() -
setCropHeight
public void setCropHeight(int cropHeight) -
getCropWidth
public int getCropWidth() -
setCropWidth
public void setCropWidth(int cropWidth) -
getCropStartX
public int getCropStartX() -
setCropStartX
public void setCropStartX(int cropStartX) -
getCropStartY
public int getCropStartY() -
setCropStartY
public void setCropStartY(int cropStartY) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getMode
Returns the mode (eg. cropandresize)- Returns:
-
setMode
Sets the mode (eg. cropandresize)- Parameters:
mode-
-
getResizeMode
Returns the resizemode (eg. force)- Returns:
-
setResizeMode
Sets the resizemode (eg. force)- Parameters:
resizeMode-
-
getFpX
Return the focal point x factor.- Returns:
-
setFpX
Set the focal point x factor.- Parameters:
fpX-
-
getFpY
Return the focal point y factor.- Returns:
-
setFpY
Set the focal point y factor.- Parameters:
fpY-
-
getRotate
Direction for rotating the image. cw for clockwise, ccw for counter-clockwise. The image will first be rotated and then (optionally) cropped and resized- Returns:
- rotate direction
-
setRotate
Set rotate direction- Parameters:
rotate- direction
-