ImageSourceBuffer Class
- java.
lang. Object - com.
azure. ai. vision. common. ImageSourceBuffer
- com.
Implements
public final class ImageSourceBuffer
implements java.lang.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
| Constructor | Description |
|---|---|
| ImageSourceBuffer() |
Constructs a new ImageSourceBuffer object |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
close()
Explicitly frees any external resource attached to the object |
| void |
closeWriter()
Closes the frame source for writing. |
| long |
getHandle()
Gets the internal native handle. |
|
Image |
getWriter()
Gets a new instance of ImageWriter that can be used to write (submit) image data to this ImageSourceBuffer instance. |
Methods inherited from java.lang.Object
Constructor Details
ImageSourceBuffer
public ImageSourceBuffer()
Constructs a new ImageSourceBuffer object
Method Details
close
public void close()
Explicitly frees any external resource attached to the object
closeWriter
public void closeWriter()
Closes the frame source for writing.
getHandle
public long getHandle()
Gets the internal native handle.
Returns:
getWriter
public ImageWriter getWriter()
Gets a new instance of ImageWriter that can be used to write (submit) image data to this ImageSourceBuffer instance.
Returns: