loadImageRaw function

Image loadImageRaw(
  1. String fileName,
  2. int width,
  3. int height,
  4. PixelFormat format,
  5. int headerSize,
)

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,
    ),
  );
}