From Xojo Documentation

aGraphics.AntiAliasMode = newGraphics.AntiAliasModesValue
Graphics.AntiAliasModesValue = aGraphics.AntiAliasMode

New in 2018r2

Supported on Desktop, Web, Console.

Controls the level of interpolation/quality when drawing scaled Pictures. Valid modes are from the Graphics.AntiAliasModes enumeration: LowQuality, DefaultQuality, and HighQuality. The default is DefaultQuality.


The Graphics.AntiAliasModes enumeration has these elements:

  • LowQuality
  • DefaultQuality
  • HighQuality

Sample Code

Use High Quality (set in Paint event of a Canvas):

g.AntiAliasMode = Global.Graphics.AntiAliasModes.HighQuality