ImageBuffer Class

Namespace: id3.Devices

Definition

Represents an image buffer.
class ImageBuffer
class ImageBuffer implements Finalizable
public partial class ImageBuffer
public class ImageBuffer implements AutoCloseable, Serializable
typedef struct id3DevicesImageBuffer *ID3_DEVICES_IMAGE_BUFFER;

Usage

imageBufferInstance = ImageBuffer()
# ...

Explicit destruction

# ...
del imageBufferInstance
final imageBufferInstance = sdk.ImageBuffer();
// ...

Explicit destruction

// ...
imageBufferInstance.dispose()
using (var imageBufferInstance = new ImageBuffer())
{
   // ...
}

Explicit destruction

var imageBufferInstance = new ImageBuffer()
// ...
imageBufferInstance.Dispose()
try (ImageBuffer imageBufferInstance = new ImageBuffer()) {
// ...
}

Explicit destruction

ImageBuffer imageBufferInstance = new ImageBuffer();
// ...
imageBufferInstance.close();
ID3_DEVICES_IMAGE_BUFFER hImageBuffer{};
int err = id3DevicesImageBuffer_Initialize(&hImageBuffer);
if (err == ID3_SUCCESS) {
    // ...
    id3DevicesImageBuffer_Dispose(&hImageBuffer);
}

Methods

Name

Description

clone

Clones the ImageBuffer object.

getData

Gets the image buffer data.

getPixels

Gets a pointer to the pixels of the image. Unsafe! The user must handle the pixels pointer carefully.