ImageDrawTextEx method

void ImageDrawTextEx(
  1. Image dst,
  2. Font font,
  3. String text,
  4. Vector2 position,
  5. num fontSize,
  6. num spacing,
  7. Color tint,
)

Draw text (custom sprite font) within an image (destination)

Implementation

void ImageDrawTextEx(
  Image dst,
  Font font,
  String text,
  Vector2 position,
  num fontSize,
  num spacing,
  Color tint,
) => run(
  () => _debugLabels.ImageDrawTextEx(dst, font, text, position, fontSize, spacing, tint),
  () => _flat.ImageDrawTextEx(
    Image$.Ref1(dst),
    font,
    String$.ValueOrNull(text),
    position,
    fontSize.toDouble(),
    spacing.toDouble(),
    tint,
  ),
);