Class AbstractAnylineImage
-
- All Implemented Interfaces:
-
kotlin.Cloneable
public abstract class AbstractAnylineImage implements Cloneable
-
-
Constructor Summary
Constructors Constructor Description AbstractAnylineImage()
-
Method Summary
Modifier and Type Method Description final Integer
getTargetWidth()
final Integer
getTargetHeight()
final Integer
getOriginalWidth()
final Integer
getOriginalHeight()
final ByteArray
getData()
<p> The image data in the format returned by {@link #getFormat()}. </p><p> Note: if {@link #isGrayOnly()} is true, the format is always Y8 (regardless of what getFormat returns). </p> final Boolean
isGrayOnly()
final Integer
getTargetOrientation()
Get the target orientation of the image. final Integer
getFormat()
Get the format the image is stored in the byte data (see {@link #getData()}). abstract AnylineImage
toAnylineImage()
Get a new AnylineImage object from the current AbstractAnylineImage object -
-
Method Detail
-
getTargetWidth
final Integer getTargetWidth()
- Returns:
the width (in the target orientation)
-
getTargetHeight
final Integer getTargetHeight()
- Returns:
the height (in the target orientation)
-
getOriginalWidth
final Integer getOriginalWidth()
- Returns:
original width of the image in the rotation as received from the sensor
-
getOriginalHeight
final Integer getOriginalHeight()
- Returns:
original height of the image in the rotation as received from the sensor
-
getData
final ByteArray getData()
<p> The image data in the format returned by {@link #getFormat()}. </p><p> Note: if {@link #isGrayOnly()} is true, the format is always Y8 (regardless of what getFormat returns). </p>- Returns:
the data in the format returned by {@link #getFormat()}
-
isGrayOnly
final Boolean isGrayOnly()
- Returns:
true if image is gray only (true also means that the format is Y8)
-
getTargetOrientation
final Integer getTargetOrientation()
Get the target orientation of the image. (The amount the raw data has to be rotated to be oriented as in the preview)
- Returns:
the target orientation
-
getFormat
final Integer getFormat()
Get the format the image is stored in the byte data (see {@link #getData()}). The format is one of the constants in {@link ImageFormat}.
- Returns:
the image format used in the byte data (see {@link #getData()})
-
toAnylineImage
abstract AnylineImage toAnylineImage()
Get a new AnylineImage object from the current AbstractAnylineImage object
-
-
-
-