LoadImageRaw method

ImageD LoadImageRaw(
  1. String fileName,
  2. num width,
  3. num height,
  4. PixelFormat format,
  5. num headerSize,
)

Load image from RAW file data

Implementation

ImageD LoadImageRaw(
  String fileName,
  num width,
  num height,
  PixelFormat format,
  num headerSize,
) => run(
  () => _debugLabels.LoadImageRaw(fileName, width, height, format, headerSize),
  () => _flat.LoadImageRaw(
    $.String$.ValueOrNull(fileName),
    width.toInt(),
    height.toInt(),
    format.value,
    headerSize.toInt(),
  ),
);