loadImageRaw function
Load image from RAW file data.
Implementation
Image loadImageRaw(
String fileName,
int width,
int height,
PixelFormat format,
int headerSize,
) {
return Image.fromRef(
library.LoadImageRaw(
string.toNative(fileName),
width,
headerSize,
pixelFormatToNative(format),
headerSize,
),
);
}