ImageDrawTextEx method

  1. @override
void ImageDrawTextEx(
  1. StructPointer<ImageD> dst,
  2. FontD font,
  3. MemoryPointer<RChar> text,
  4. Vector2D position,
  5. double fontSize,
  6. double spacing,
  7. ColorD 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,
);