Class ImageResizeRequest
- java.lang.Object
-
- com.gentics.contentnode.rest.model.request.ImageResizeRequest
-
public class ImageResizeRequest extends Object
-
-
Constructor Summary
Constructors Constructor Description ImageResizeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCropHeight()
int
getCropStartX()
int
getCropStartY()
int
getCropWidth()
Float
getFpX()
Return the focal point x factor.Float
getFpY()
Return the focal point y factor.int
getHeight()
Image
getImage()
String
getMode()
Returns the mode (eg.String
getResizeMode()
Returns the resizemode (eg.ImageRotate
getRotate()
Direction for rotating the image.String
getTargetFormat()
int
getWidth()
boolean
isCopyFile()
void
setCopyFile(boolean copyFile)
void
setCropHeight(int cropHeight)
void
setCropStartX(int cropStartX)
void
setCropStartY(int cropStartY)
void
setCropWidth(int cropWidth)
void
setFpX(Float fpX)
Set the focal point x factor.void
setFpY(Float fpY)
Set the focal point y factor.void
setHeight(int height)
void
setImage(Image image)
void
setMode(String mode)
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)
-
-
-
Method Detail
-
isCopyFile
public boolean isCopyFile()
- Returns:
- the copyFile
-
setCopyFile
public void setCopyFile(boolean copyFile)
- Parameters:
copyFile
- the copyFile to set
-
getTargetFormat
public String getTargetFormat()
-
setTargetFormat
public void setTargetFormat(String targetFormat)
-
getImage
public Image getImage()
-
setImage
public void setImage(Image image)
-
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
public String getMode()
Returns the mode (eg. cropandresize)- Returns:
-
setMode
public void setMode(String mode)
Sets the mode (eg. cropandresize)- Parameters:
mode
-
-
getResizeMode
public String getResizeMode()
Returns the resizemode (eg. force)- Returns:
-
setResizeMode
public void setResizeMode(String resizeMode)
Sets the resizemode (eg. force)- Parameters:
resizeMode
-
-
getFpX
public Float getFpX()
Return the focal point x factor.- Returns:
-
setFpX
public void setFpX(Float fpX)
Set the focal point x factor.- Parameters:
fpX
-
-
getFpY
public Float getFpY()
Return the focal point y factor.- Returns:
-
setFpY
public void setFpY(Float fpY)
Set the focal point y factor.- Parameters:
fpY
-
-
getRotate
public ImageRotate 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
public void setRotate(ImageRotate rotate)
Set rotate direction- Parameters:
rotate
- direction
-
-