antiAliased

inline fun Graphics.antiAliased(draw: Graphics2D.() -> Unit)

Perform the specified block of drawing logic using high-quality, anti-aliased drawing and font rendering operations. Restore the original rendering hints before returning control to the caller.

Receiver

A graphics context that must be a subclass of Graphics2D.

Parameters

draw

The drawing logic.