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
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable FocusAreagetFocus()Returns the focus area associated with this crop selection.intGets image orientation in degree.@Nullable Rectangle2DThe selection rectangle.booleanIs the image flipped before stored.voidConfigures the focus area associated with this crop selection.voidsetImageFlipped(boolean imageFlipped) Sets/mark the image flipped.voidsetImageRotation(int imageRotation) Sets the image rotation in degree.voidsetSelection(@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
-