Class GdiTextRenderer
Draws text using fastest GDI API such as TextOut and standard UI font. Can easily draw string parts with different colors/styles without measuring. Must be disposed.
public class GdiTextRenderer : IDisposable
Namespace: Au.More
Assembly: Au.dll
Constructors
Name | Description |
---|---|
GdiTextRenderer(int) | Object created with this ctor can measure only. Uses screen DC. |
GdiTextRenderer(nint, int) | Object created with this ctor can draw and measure. |
Methods
Name | Description |
---|---|
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
DrawText(string, POINT, int, Range?, int?) | Draws text at specified position. Does not use/update the current drawing position of the DC. |
DrawText(string, in RECT, int, Range?, int?) | Draws text clipped in specified rectangle. Does not use/update the current drawing position of the DC. |
DrawText(string, int, Range?, int?) | Draws text at the current drawing position of the DC, and updates it. |
FontBold() | Sets bold font. |
FontNormal() | Sets non-bold font. |
GetCurrentPosition() | Gets the current drawing position of the DC. |
MeasureText(string, Range?) | |
MoveTo(int, int) | Sets the current drawing position of the DC. Returns previous position. |