Re: fast drawing in delphi



Maldona8 wrote:
> no no, for sure, no direct image.canvas drawing at all, now
> I am trying now to see how to make the
> drawing in memory, and then to play the memory
> drawing image into screen using bitblt ()...
> for the moment just big headache...

Use the supplied TFastIMG for windowed mode.

Then draw to an in-memory surface, say BackDIB, then..

BackDIB.Draw(FastIMG1.Bmp.hDc, 0, 0)

Which wraps the BitBlt() API. If you're using DirectDraw then look at the
fumes example - it simply sets up a DDraw surface and then throws the
surface away, replacing it with a FastIMG's "bits" property. You draw to the
FastDIB, and by doing so you draw to the screen.

Buffer chaining is a different kettle of bananas, though.

D.


.


Quantcast