LDKImageFormat
typedef enum LDKImageFormat{
LDK_IMAGE_FORMAT_RGBA8_UNORM=0,
LDK_IMAGE_FORMAT_RGBA16_UNORM
}LDKImageFormat;
typedef enum LDKImageFormat{
LDK_IMAGE_FORMAT_RGBA8_UNORM=0,
LDK_IMAGE_FORMAT_RGBA16_UNORM
}LDKImageFormat;
Create an image from raw interleaved RGBA pixels in the requested format.
LDK_API LDKImage * ldk_image_create_format(
u32 width,
u32 height,
LDKImageFormat format,
void const *pixels
);
u32 widthu32 heightLDKImageFormat formatvoid const *pixelsPointer to the requested object or data; NULL when unavailable.
Get the image pixel format.
LDK_API LDKImageFormat ldk_image_get_format(LDKImage const *image);
LDKImage const *imageThe requested value.
Get the image pixel buffer.
LDK_API u8 const * ldk_image_get_pixels(LDKImage const *image);
LDKImage const *imagePointer to the requested object or data; NULL when unavailable.