ImageDrawPixel method

void ImageDrawPixel(
  1. ImageD dst,
  2. num posX,
  3. num posY,
  4. ColorD color,
)

Draw pixel within an image

Implementation

void ImageDrawPixel(
  ImageD dst,
  num posX,
  num posY,
  ColorD color,
) => run(
  () => _debugLabels.ImageDrawPixel(dst, posX, posY, color),
  () => _flat.ImageDrawPixel(
    $.Image$.Ref1(dst),
    posX.toInt(),
    posY.toInt(),
    color,
  ),
);