| View previous topic :: View next topic |
| Author |
Message |
Marco Guest
|
Posted: Fri Jun 25, 2004 2:24 pm Post subject: TPanel Canvas and TImage canvas |
|
|
Hi everyone,
I've derived a class (MyPanel) from TPanel and i draw it with Canvas.
How can i send "MyPanel" Canvas To an TImage Canvas?
Thanks in advanced.
Marco
|
|
| Back to top |
|
 |
Steve Aletto Guest
|
Posted: Fri Jun 25, 2004 3:40 pm Post subject: Re: TPanel Canvas and TImage canvas |
|
|
| Quote: | I've derived a class (MyPanel) from TPanel and i draw it with
Canvas. |
How exactly? TPanel doesn't own a TCanvas property...
| Quote: | How can i send "MyPanel" Canvas To an TImage Canvas?
Not very sure about what you're asking for, anyway you could try the |
following:
YourImage->Canvas->CopyRect(YourPanel->ClientRect, YourCanvas,
YourPanel->ClientRect);
HTH,
Steve.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Jun 25, 2004 5:44 pm Post subject: Re: TPanel Canvas and TImage canvas |
|
|
"Steve Aletto" <steve_alettoANTI (AT) SPAMhotmail (DOT) com> wrote
| Quote: | How exactly? TPanel doesn't own a TCanvas property...
|
You can use a TControlCanvas to draw onto any TControl derived component.
Gambit
|
|
| Back to top |
|
 |
Marco Guest
|
Posted: Mon Jun 28, 2004 6:51 am Post subject: Re: TPanel Canvas and TImage canvas |
|
|
Thanks Steve.
Marco
|
|
| Back to top |
|
 |
|