PDA

View Full Version : TCanvas



Fernando
13-05-2003, 12:05 AM
Hi guys.

Is there a way to tell delphi that I don't want him to allocate memory and don't want to use the TCanvas class of a TPanel?

I would like to use GDI Win-API functions directly, and I think the TCanvas is making my application lose some of its capabilities. In other words, my application has a bug when it's drawing graphics, and I think that's because I mixed TCanvas with direct access to the GDI.

Do you think Am' I wrong?
Is there a way to discard TCanvas?

Thank you

Harry Hunt
13-05-2003, 05:28 AM
TCanvas is not slower than directly using GDI. Also, you can combine TCanvas with all Windows-API drawing functions since TCanvas is nothing but a wrapper for the GDI.