ImageAlphaClear method

void ImageAlphaClear(
  1. ImageD image,
  2. ColorD color,
  3. num threshold
)

Clear alpha channel to desired color

Implementation

void ImageAlphaClear(
  ImageD image,
  ColorD color,
  num threshold,
) => run(
  () => _debugLabels.ImageAlphaClear(image, color, threshold),
  () => _flat.ImageAlphaClear(
    $.Image$.Ref1(image),
    color,
    threshold.toDouble(),
  ),
);