Class ImageResizeRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.ImageResizeRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
getFpX()
Return the focal point x factor.getFpY()
Return the focal point y factor.int
getImage()
getMode()
Returns the mode (eg.Returns the resizemode (eg.Direction for rotating the image.int
getWidth()
boolean
void
setCopyFile
(boolean copyFile) void
setCropHeight
(int cropHeight) void
setCropStartX
(int cropStartX) void
setCropStartY
(int cropStartY) void
setCropWidth
(int cropWidth) void
Set the focal point x factor.void
Set the focal point y factor.void
setHeight
(int height) void
void
Sets the mode (eg.void
setResizeMode
(String resizeMode) Sets the resizemode (eg.void
setRotate
(ImageRotate rotate) Set rotate directionvoid
setTargetFormat
(String targetFormat) void
setWidth
(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
-