-
public class RotationOptions.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerNO_ROTATIONprivate final IntegerROTATE_90private final IntegerROTATE_180private final IntegerROTATE_270public final static RotationOptions.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final RotationOptionsautoRotate()Creates a new set of rotation options for JPEG images to use the rotation angle in the image metadata. final RotationOptionsdisableRotation()Creates a new set of rotation options for JPEG images to load image without any rotation. final RotationOptionsautoRotateAtRenderTime()Creates a new set of rotation options for JPEG images to use the rotation angle in the image metadata. final RotationOptionsforceRotation(Integer angle)Creates a new set of rotation options to use a specific rotation angle. final IntegergetNO_ROTATION()final IntegergetROTATE_90()final IntegergetROTATE_180()final IntegergetROTATE_270()-
-
Method Detail
-
autoRotate
final RotationOptions autoRotate()
Creates a new set of rotation options for JPEG images to use the rotation angle in the image metadata.
This is the default option for requests which don't specify rotation options.
The rotation will not be deferred for defensiveness but that can improve performance. To defer, use autoRotateAtRenderTime().
-
disableRotation
final RotationOptions disableRotation()
Creates a new set of rotation options for JPEG images to load image without any rotation.
-
autoRotateAtRenderTime
final RotationOptions autoRotateAtRenderTime()
Creates a new set of rotation options for JPEG images to use the rotation angle in the image metadata.
The rotation may be deferred until the image is rendered.
-
forceRotation
final RotationOptions forceRotation(Integer angle)
Creates a new set of rotation options to use a specific rotation angle.
The rotation will be carried out in the pipeline.
- Parameters:
angle- the angle to rotate - valid values are 0, 90, 180 and 270
-
getNO_ROTATION
final Integer getNO_ROTATION()
-
getROTATE_90
final Integer getROTATE_90()
-
getROTATE_180
final Integer getROTATE_180()
-
getROTATE_270
final Integer getROTATE_270()
-
-
-
-