Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# ImageBuffer Class

Namespace: id3.Document

## Definition

Represents an image buffer.
Python

    class ImageBuffer

Dart

    class ImageBuffer implements Finalizable

C#

    public partial class ImageBuffer

Java

    public class ImageBuffer implements AutoCloseable, Serializable

Swift

    public class ImageBuffer

C

    typedef struct id3DocumentImageBuffer *ID3_DOCUMENT_IMAGE_BUFFER;

## Usage

Python

    imageBufferInstance = ImageBuffer()
    # ...

Explicit destruction

    # ...
    del imageBufferInstance

Dart

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

Explicit destruction

    // ...
    imageBufferInstance.dispose()

C#

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

Explicit destruction

    var imageBufferInstance = new ImageBuffer()
    // ...
    imageBufferInstance.Dispose()

Java

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

Explicit destruction

    ImageBuffer imageBufferInstance = new ImageBuffer();
    // ...
    imageBufferInstance.close();

Swift

    private var imageBufferInstance: ImageBuffer? = nil
    imageBufferInstance = try ImageBuffer()

C

    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.