public class Image
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Image |
clone()
Creates and returns a copy of this image object.
|
android.graphics.Bitmap |
convertToBitmap()
Converts this image into Android Bitmap.
|
void |
dispose()
Disposes native object containing image pixels.
|
protected void |
finalize() |
java.nio.ByteBuffer |
getBuffer()
Returns the native buffer that contains image pixels.
|
int |
getHeight()
Returns the height of the image.
|
ImageFormat |
getImageFormat()
Returns the format of the image.
|
java.lang.String |
getImageName()
Returns the name of the image.
|
Orientation |
getImageOrientation()
Returns the orientation of the image.
|
ImageType |
getImageType()
Returns the type of the image.
|
int |
getPixelStride()
Returns the pixel stride for image buffer.
|
android.graphics.Rect |
getROI()
Returns the region of interest in image.
|
int |
getRowStride()
Returns the row stride for image buffer.
|
int |
getWidth()
Returns the width of the image.
|
boolean |
isDisposed()
Returns true if image's internal buffers are disposed and cannot be used anymore.
|
void |
setImageOrientation(Orientation orientation)
Use this method to change Image's orientation.
|
void |
setROI(android.graphics.Rect roi)
Sets the region of interest in image.
|
public void dispose()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic Image clone()
clone in class java.lang.Objectpublic int getWidth()
public int getHeight()
public ImageType getImageType()
public ImageFormat getImageFormat()
public java.lang.String getImageName()
public java.nio.ByteBuffer getBuffer()
public int getPixelStride()
public int getRowStride()
public android.graphics.Rect getROI()
public void setROI(android.graphics.Rect roi)
roi - region of interest in imagepublic Orientation getImageOrientation()
public void setImageOrientation(@NonNull
Orientation orientation)
orientation - public boolean isDisposed()
@Nullable public android.graphics.Bitmap convertToBitmap()