Description
The TextAntialiasing
property of the Editor.GraphicsView
class determines whether text rendering within the graphics view should use antialiasing. Antialiasing is a technique used to smooth the edges of text, making it appear less jagged and more visually appealing.
Usage
To enable or disable text antialiasing in a GraphicsView
, set the TextAntialiasing
property to true
or false
respectively. This can be useful when you need to optimize rendering performance or when you want to achieve a specific visual style.
Example
// Create a new GraphicsView instance
var graphicsView = new Editor.GraphicsView();
// Enable text antialiasing
graphicsView.TextAntialiasing = true;
// Disable text antialiasing
graphicsView.TextAntialiasing = false;