Interface ImageData

Represents image data including pixel buffer, dimensions, and offset/position.

interface ImageData {
    buffer: Buffer;
    height: number;
    offsetX: number;
    offsetY: number;
    width: number;
    x: number;
    y: number;
}

Properties

buffer: Buffer

The pixel data buffer.

height: number

The height of the image.

offsetX: number

The horizontal offset of the image data within a larger context.

offsetY: number

The vertical offset of the image data within a larger context.

width: number

The width of the image.

x: number

The x-coordinate of the image's position.

y: number

The y-coordinate of the image's position.