Class PictureCropData
java.lang.Object
de.espirit.firstspirit.access.store.mediastore.PictureCropData
- All Implemented Interfaces:
Serializable
Represents a cropped rectangle of a picture, picture resolution.
- Since:
- 4.1.10
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable FocusArea
getFocus()
Returns the focus area associated with this crop selection.int
Gets image orientation in degree.@Nullable Rectangle2D
The selection rectangle.boolean
Is the image flipped before stored.void
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
(@Nullable Rectangle2D selection) Sets the selection rectangle.
-
Constructor Details
-
PictureCropData
public PictureCropData()
-
-
Method Details
-
getFocus
Returns the focus area associated with this crop selection.- Returns:
- The focus area this crop selection has been created with.
- Since:
- 5.2.200705
-
setFocus
Configures the focus area associated with this crop selection.- Parameters:
focusArea
- The focus area this crop selection has been created with.- Since:
- 5.2.200705
-
getSelection
The selection rectangle.- Returns:
- the rectangle
- Since:
- 4.1.10
- See Also:
-
setSelection
Sets the selection rectangle.- Parameters:
selection
- the selection- Since:
- 4.1.10
- See Also:
-
getImageRotation
public int getImageRotation()Gets image orientation in degree.- Returns:
- the image rotation
- Since:
- 4.1.10
-
setImageRotation
public void setImageRotation(int imageRotation) Sets the image rotation in degree.possible values:
0, 90, 180, 270, 360
- Parameters:
imageRotation
- the image rotation in degree- Since:
- 4.1.10
-
isImageFlipped
public boolean isImageFlipped()Is the image flipped before stored.- Returns:
- the boolean
- Since:
- 4.1.10
-
setImageFlipped
public void setImageFlipped(boolean imageFlipped) Sets/mark the image flipped.- Parameters:
imageFlipped
- the image flipped- Since:
- 4.1.10
-