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:
  • Constructor Details

    • ImageRotateRequest

      public ImageRotateRequest()
  • Method Details

    • 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