ImageDrawText method

void ImageDrawText(
  1. ImageD dst,
  2. String text,
  3. num posX,
  4. num posY,
  5. num fontSize,
  6. ColorD color,
)

Implementation

void ImageDrawText(
  ImageD dst,
  String text,
  num posX,
  num posY,
  num fontSize,
  ColorD color,
) => run(
  () => 'ImageDrawText($dst, $text, $posX, $posY, $fontSize, $color)',
  () => rl.Temp.Image$.RefUpdate1(dst,
    (p) => rl.Core.ImageDrawText(
      p,
      rl.Temp.String$.ValueOrNull(text),
      posX.toInt(),
      posY.toInt(),
      fontSize.toInt(),
      rl.Temp.Color$.Ref1(color).ref,
    ),
  ),
);