Timage & AntialiasingMode lazarus / 39-Graphics ---------------------------------------------------------------------- airpas · 2014-04-28 14:15 hi does the (AntialiasingMode) property works in Timage ? i set it to amOn but nothing changed ! . iam drawing on timage using ( timage.canvas.Line , Polygon .... ) lazarus 1.1 / fpc 2.7.1 / win7 ---------------------------------------------------------------------- Blaazen · 2014-04-28 14:27 Don't know about Windows7 (I have only wine). It works in Qt but not in GTK2. So it seems that this feature is platform-dependent. Definitely, Canvas.Line(); is perfectly antialiased in Qt4 when I use mode amOn. ---------------------------------------------------------------------- circular · 2014-04-28 14:57 Antialiasing mode does not work on Windows. ---------------------------------------------------------------------- taazz · 2014-04-29 00:02 The reason is that the Tcanvas is using GDI under the hood to draw and GDI does not support anti-aliased mode for graphics. you need to use a different engine eg GDI+ or use the aggpas library that comes with lazarus for painting on a buffer and copy that buffer to the image afterwards, although I think that there is a rasterizer for tbimaps included with aggpas. ---------------------------------------------------------------------- circular · 2014-04-29 21:53 Or use my library BGRABitmap. An TBGRABitmap object has a property CanvasBGRA, that provides the same function as TCanvas, except that antialiasing always works.