Rodrigo Farias Rezino
Rodrigo Farias Rezino

Reputation: 2799

How to draw on TCanvas with performance?

I use a map component named TatukGis and I need to draw some other information on map, it uses TCanvas basically to draw the maps. I'm working with Pixels to create an alpha blend effect that I'd like, but it's very slow, it seems to refresh the canvas on each operation. Some one can give some hints how to use TCanvas in the correctly way to draw the things fast ?

Tks

Upvotes: 2

Views: 2628

Answers (1)

Mike Versteeg
Mike Versteeg

Reputation: 1623

First write to a bitmap (use ScanLine if you require pixel access), then draw the bitmap to the canvas (CopyRect).

Upvotes: 4

Related Questions