Re: fast drawing in delphi



Maldona8 wrote:
> Looking for algorithms, source codes for fast drawing routines in
> Delphi I have a hexagonal grid of 100x100 hexagons, each hexagon
> having its own color.
> I need to draw this map in a very very fast way, the faster possible.
> What Delphi technology would you recommend to do this job?
> Thanks in advance for your help!

No matter what you do, don't do a large number of point/draw operatrions
onto a visible canvas. Do rather create an invisible ("off-screen") bitmap,
do all painting on this one, and copy the entire image onto the visibla
canvas by BitBlt() WinAPI. This is\t as magic as e.g. DirectX, but it speeds
up painting substantially.
--
Bjørge
bjorge@xxxxxxxxxxxx


.


Quantcast