ImageFormat method

void ImageFormat(
  1. ImageD image,
  2. PixelFormat newFormat
)

Convert image data to desired format

Implementation

void ImageFormat(
  ImageD image,
  PixelFormat newFormat,
) => run(
  () => _debugLabels.ImageFormat(image, newFormat),
  () => _flat.ImageFormat(
    $.Image$.Ref1(image),
    newFormat.value,
  ),
);