ImageDrawTextEx method

  1. @override
void ImageDrawTextEx(
  1. StructPointer dst,
  2. dynamic font,
  3. MemoryPointer<RChar> text,
  4. dynamic position,
  5. double fontSize,
  6. double spacing,
  7. dynamic tint,
)
override

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

Implementation

@override
void ImageDrawTextEx(
  StructPointer<ImageD> dst,
  FontD font,
  MemoryPointer<RChar> text,
  Vector2D position,
  double fontSize,
  double spacing,
  ColorD tint,
) => _ffi.ImageDrawTextEx(
  dst.asNativePointer(),
  $.Font$.Ref1(font).asNativePointer<FontC>().ref,
  text.asNativePointer(),
  $.Vector2$.Ref1(position).asNativePointer<Vector2C>().ref,
  fontSize,
  spacing,
  $.Color$.Ref1(tint).asNativePointer<ColorC>().ref,
);