LoadImageRaw method

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

Implementation

ImageD LoadImageRaw(
  String fileName,
  num width,
  num height,
  PixelFormat format,
  num headerSize,
) => run(
  () => 'LoadImageRaw($fileName, $width, $height, ${format.name}, $headerSize)',
  () => rl.Temp.Image$.RefCapture(
    'LoadImageRaw_${fileName}_${width}_${height}_${format.name}',
    rl.Core.LoadImageRaw(
      rl.Temp.String$.ValueOrNull(fileName),
      width.toInt(),
      height.toInt(),
      format.value,
      headerSize.toInt(),
    ),
  ),
);