DrawString
Draws a string on an image.
Syntax
C++
Python
def DrawString( ioImage: Image, inString: str, inLocation: Location, inColor: Pixel, /, *, inLocationAlignment: CoordinateSystem2D | None = None, inLocationAnchor: Anchor2D = Anchor2D.MiddleCenter, inDrawingStyle: DrawingStyle = DrawingStyle(DrawingMode.HighQuality, 1.0, 3.0, False, None, 2.0), inSize: float = 12.0, inOrientationAngle: float = 0.0, inBackgroundColor: Pixel | None = None ) -> None
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
ioImage | Image | ||
![]() |
inString | str | ||
![]() |
inLocation | Location | ||
![]() |
inLocationAlignment | CoordinateSystem2D | None | None | |
![]() |
inLocationAnchor | Anchor2D | Anchor2D.MiddleCenter | |
![]() |
inColor | Pixel | ||
![]() |
inDrawingStyle | DrawingStyle | DrawingStyle(DrawingMode.HighQuality, 1.0, 3.0, False, None, 2.0) | |
![]() |
inSize | float | 12.0 | Height of a character |
![]() |
inOrientationAngle | float | 0.0 | |
![]() |
inBackgroundColor | Pixel | None | None |


