Class ImageRotateRequest
- java.lang.Object
-
- com.gentics.contentnode.rest.model.request.ImageRotateRequest
-
- All Implemented Interfaces:
Serializable
public class ImageRotateRequest extends Object implements Serializable
Request to rotate an image- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageRotateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Image
getImage()
Image to rotateImageRotate
getRotate()
Direction for rotating the image.String
getTargetFormat()
Target format (defaults to "png")boolean
isCopyFile()
Flag for copying the fileImageRotateRequest
setCopyFile(boolean copyFile)
Set the copy file flagImageRotateRequest
setImage(Image image)
Set the imageImageRotateRequest
setRotate(ImageRotate rotate)
Set rotation directionImageRotateRequest
setTargetFormat(String targetFormat)
Set the target format
-
-
-
Method Detail
-
getImage
public Image getImage()
Image to rotate- Returns:
- image
-
setImage
public ImageRotateRequest setImage(Image image)
Set the image- Parameters:
image
- image- Returns:
- fluent API
-
isCopyFile
public boolean isCopyFile()
Flag for copying the file- Returns:
- flag
-
setCopyFile
public ImageRotateRequest setCopyFile(boolean copyFile)
Set the copy file flag- Parameters:
copyFile
- flag- Returns:
- fluent API
-
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 ImageRotateRequest setRotate(ImageRotate rotate)
Set rotation direction- Parameters:
rotate
- direction- Returns:
- fluent API
-
getTargetFormat
public String getTargetFormat()
Target format (defaults to "png")- Returns:
- target format
-
setTargetFormat
public ImageRotateRequest setTargetFormat(String targetFormat)
Set the target format- Parameters:
targetFormat
- format- Returns:
- fluent API
-
-