#includeint main() { SkPaint paint; paint.setAntiAlias(true); // Enable anti-aliasing // Draw lines and curves with the paint object return 0; }
#includeThis example shows how to disable anti-aliasing in a SkPaint object named "paint" using the setAntiAlias function. The function is called with the parameter "false" to disable anti-aliasing. Package Library: Skia Graphics Library.int main() { SkPaint paint; paint.setAntiAlias(false); // Disable anti-aliasing // Draw shapes with the paint object return 0; }