ImageSourceBuffer Class

  • java.lang.Object
    • com.azure.ai.vision.common.ImageSourceBuffer

Implements

java.lang.AutoCloseable

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.

ImageWriter 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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

Native handle value

getWriter

public ImageWriter getWriter()

Gets a new instance of ImageWriter that can be used to write (submit) image data to this ImageSourceBuffer instance.

Returns:

A new ImageWriter instance associated to this ImageSourceBuffer.

Applies to