ImageData

abstract class ImageData(val width: Int, val height: Int, val format: ColorFormat, val type: ColorType, val flipV: Boolean, var data: MPPBuffer?, val mipmapData: List<MPPBuffer> = emptyList()) : AutoCloseable(source)

Represents image data with specific properties such as dimensions, format, type, and optional mipmap levels.

This is an abstract class used as a base for implementing various image data-related structures or functionalities.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, format: ColorFormat, type: ColorType, flipV: Boolean, data: MPPBuffer?, mipmapData: List<MPPBuffer> = emptyList())

Properties

Link copied to clipboard

An optional buffer containing the raw image data.

Link copied to clipboard

Indicates if the image data is vertically flipped or not.

Link copied to clipboard

The color format of the image, which defines its color channels and their arrangement.

Link copied to clipboard
val height: Int

The height of the image in pixels.

Link copied to clipboard

A list of buffers for mipmap levels of the image, defaulting to an empty list.

Link copied to clipboard

The color type of the image, which determines the data type and bit-depth of each component.

Link copied to clipboard
val width: Int

The width of the image in pixels.

Functions

Link copied to clipboard
expect abstract fun close()