public class PictureCropData extends Object implements Serializable
Constructor and Description |
---|
PictureCropData() |
Modifier and Type | Method and Description |
---|---|
FocusArea |
getFocus()
Returns the focus area associated with this crop selection.
|
int |
getImageRotation()
Gets image orientation in degree.
|
Rectangle2D |
getSelection()
The selection rectangle.
|
boolean |
isImageFlipped()
Is the image flipped before stored.
|
void |
setFocus(FocusArea focusArea)
Configures the focus area associated with this crop selection.
|
void |
setImageFlipped(boolean imageFlipped)
Sets/mark the image flipped.
|
void |
setImageRotation(int imageRotation)
Sets the image rotation in degree.
|
void |
setSelection(Rectangle2D selection)
Sets the selection rectangle.
|
@Nullable public FocusArea getFocus()
public void setFocus(@Nullable FocusArea focusArea)
focusArea
- The focus area this crop selection has been created with.public Rectangle2D getSelection()
Rectangle2D
public void setSelection(@Nullable Rectangle2D selection)
selection
- the selectionRectangle2D
public int getImageRotation()
public void setImageRotation(int imageRotation)
possible values:
0, 90, 180, 270, 360
imageRotation
- the image rotation in degreepublic boolean isImageFlipped()
public void setImageFlipped(boolean imageFlipped)
imageFlipped
- the image flippedCopyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210