Class ImageRotateRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.ImageRotateRequest
- All Implemented Interfaces:
Serializable
Request to rotate an image
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetImage()
Image to rotateDirection for rotating the image.Target format (defaults to "png")boolean
Flag for copying the filesetCopyFile
(boolean copyFile) Set the copy file flagSet the imagesetRotate
(ImageRotate rotate) Set rotation directionsetTargetFormat
(String targetFormat) Set the target format
-
Constructor Details
-
ImageRotateRequest
public ImageRotateRequest()
-
-
Method Details
-
getImage
Image to rotate- Returns:
- image
-
setImage
Set the image- Parameters:
image
- image- Returns:
- fluent API
-
isCopyFile
public boolean isCopyFile()Flag for copying the file- Returns:
- flag
-
setCopyFile
Set the copy file flag- Parameters:
copyFile
- flag- Returns:
- fluent API
-
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 rotation direction- Parameters:
rotate
- direction- Returns:
- fluent API
-
getTargetFormat
Target format (defaults to "png")- Returns:
- target format
-
setTargetFormat
Set the target format- Parameters:
targetFormat
- format- Returns:
- fluent API
-