ImageBuffer Class

Namespace: id3.Document

Definition

Represents an image buffer.
class ImageBuffer
class ImageBuffer implements Finalizable
public partial class ImageBuffer
public class ImageBuffer implements AutoCloseable, Serializable
public class ImageBuffer
typedef struct id3DocumentImageBuffer *ID3_DOCUMENT_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();
private var imageBufferInstance: ImageBuffer? = nil
imageBufferInstance = try ImageBuffer()
ID3_DOCUMENT_IMAGE_BUFFER hImageBuffer{};
int err = id3DocumentImageBuffer_Initialize(&hImageBuffer);
if (err == ID3_SUCCESS) {
    // ...
    id3DocumentImageBuffer_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.