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

# ImageBuffer.getData Method

Module: ImageBuffer

## Definition

Gets the image buffer data.

Python

    get_data(self) -> bytearray

Returns

> `bytearray`
> Data of the image buffer object.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Dart

    Uint8List getData()

Returns

> `Uint8List`
> Data of the image buffer object.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C#

    public byte[] GetData()

Returns

> `byte[]`
> Data of the image buffer object.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Java

    public byte[] getData() throws DocumentException

Returns

> `byte[]`
> Data of the image buffer object.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

Swift

    public func getData() throws -> [UInt8]

Returns

> `[UInt8]`
> Data of the image buffer object.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentImageBuffer_GetData (
        ID3_DOCUMENT_IMAGE_BUFFER hImageBuffer,
        unsigned char * data,
        int * dataSize)

Parameters

> `hImageBuffer` ID3_DOCUMENT_IMAGE_BUFFER
> in Handle to the ImageBuffer object.
> `data` unsigned char *
> out Data of the image buffer object.
> `dataSize` int *
> in Size of the ‘data’ buffer. Receives the number of elements in the ‘data’ array.

Returns

> `int`
> An error code.
> See id3DocumentError file for the list of possible error codes.