How to draw an anti-aliased curve? lazarus / 13-General ---------------------------------------------------------------------- RentGen · 2009-02-15 16:01 Can this be done natively, or should one use something like GDI+ instead? Is there a cross-platform FreePascal library with features similar to GDI+? ---------------------------------------------------------------------- Marc · 2009-02-15 16:07 Not natively. If you want win32 only you can have a look at GDI+ As alternative you can use aggpas or graphics32 ---------------------------------------------------------------------- RentGen · 2009-02-15 16:12 Thanks for making this clear. ---------------------------------------------------------------------- LuizAmérico · 2009-02-15 21:47 You can try also cairo: http://code.google.com/p/luipack/source/browse/#svn/trunk/cairo Install cairobase and cairolcl packages. Take a look at the demos. The win32 libraries can be found at: http://www.gtk.org/download- windows.html ---------------------------------------------------------------------- RentGen · 2009-02-16 00:01 Wow! That's interesting. Thanks! Just looked at the examples and they are very neat and straightforward. I will definitely consider using Cairo. The only thing - it doesn't seem to be very fast. I wonder how its speed compares to AggPas's? ---------------------------------------------------------------------- LuizAmérico · 2009-02-16 01:51 Due to its nature AggPas is probably faster since it works with image data in memory. Cairo has a more generic design and can draw directly to win32 device contexts (bitmaps, controls, printer), xlib widgets, quartz surfaces and also to memory data. This has drawbacks: drawing in a dc is slower than drawing in memory; optimization is more difficult because is necessary to consider all cases. Anyway all examples run smooth in my computers and some controls are all draw with cairo (see luicairo/luibar) without performance impact. Also consider that all Firefox drawing is done with cairo. ---------------------------------------------------------------------- RentGen · 2009-02-16 11:08 All right. I'm sold Cairo's ease of use and FreePascal examples are excellent! I won't look any further Thanks a lot!