Class ImageSourceBuffer
- java.lang.Object
-
- com.azure.android.ai.vision.common.ImageSourceBuffer
-
- All Implemented Interfaces:
AutoCloseable
public final class ImageSourceBuffer extends Object implements AutoCloseable
ImageSourceBuffer class Represents a source of image data, used as input to or output from Vision AI operations.Note: close() must be called in order to release underlying resources held by the object.
-
-
Constructor Summary
Constructors Constructor Description ImageSourceBuffer()
Constructs a newImageSourceBuffer
object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Explicitly frees any external resource attached to the objectvoid
closeWriter()
Closes the frame source for writing.long
getHandle()
Gets the internal native handle.ImageWriter
getWriter()
Gets a new instance ofImageWriter
that can be used to write (submit) image data to thisImageSourceBuffer
instance.
-
-
-
Constructor Detail
-
ImageSourceBuffer
public ImageSourceBuffer()
Constructs a newImageSourceBuffer
object
-
-
Method Detail
-
getWriter
public ImageWriter getWriter()
Gets a new instance ofImageWriter
that can be used to write (submit) image data to thisImageSourceBuffer
instance.- Returns:
- A new
ImageWriter
instance associated to thisImageSourceBuffer
.
-
closeWriter
public void closeWriter()
Closes the frame source for writing.
-
getHandle
public long getHandle()
Gets the internal native handle.- Returns:
- Native handle value
-
close
public void close()
Explicitly frees any external resource attached to the object- Specified by:
close
in interfaceAutoCloseable
-
-