Quantcast
Channel: CCNA final exam 2013, Java, PHP, Cshap, html, flash, javascript, Facebook » delphi
Viewing all articles
Browse latest Browse all 23

Simple anti-aliasing function for Delphi 7

$
0
0

I need a very simple function to draw a bunch of lines with anti-aliasing. It has to follow Delphi paradigm: self contained and SYSTEM INDEPENDENT (no DLL hell), fast, simple.
Anybody knows such a library?

Until now I have tried:

WuLine
swissdelphicenter.ch/torry/showcode.php?id=1812
I don’t think that the author of this code ever run it. It takes one second to draw a single line! It is obviously only for educational purposes :)

Anti aliased drawing from TMetaFile
Link: blog.synopse.info/post/2010/04/02/Antialiased-drawing-from-TMetaFile
Haven’t really tried this yet (I may do it soon). It works only with TMetaFiles. It only loads an EMF file and draw it using anti aliasing functions. Plus, much code on that web site is only demonstrational/educational.

Image32
Very nice library – most complete until now. I might use it but it is overkill for what I need.
Disadvantages:
– The footprint added to application is pretty big.
– Really difficult to use.
– You need to go really deep in its obscure documentation even for simple tasks.
– Demo code provided is way too complex.
– Buggy!
– No recent updates (to fix the bugs)

Anti-Grain Geometry library
The library needs a decent installer. The writers of the library are Linux/Mac users. The Windows implementation looks weird. I cannot say something else about the library itself.

Xiaolin Wu’s based function (by Andreas Rejbrand)
Just see few posts below. Andreas Rejbrand provided a very compact solution. Best solution until now.


It looks like I have to explain why I don’t like large 3rd party libraries and VCL’s:

  • you have to install them
  • large library means large number of bugs which means
  • you have to check for updates (and install them again)
  • when you reinstall Delphi, you have to install them one more time (yes I hate installing VCLs)
  • for VCLs, it means you have to load some extra icons in your already crowded palette.
  • (sometimes) no support
  • LARGE footprint added to your application size
  • large library means (well not always but in most cases) difficult to use – more difficult than you need.
  • (for external DLLs and API) your application becomes system-dependent – really nasty!

Viewing all articles
Browse latest Browse all 23

Trending Articles