 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brian Plotkin Guest
|
Posted: Mon May 14, 2007 3:19 pm Post subject: Device Context of a TImage |
|
|
How can I get the device context (if possible) of a TImage?
I want to use the GradientFill function which requires a dc.
TIA,
Brian |
|
| Back to top |
|
 |
Clayton Arends Guest
|
Posted: Mon May 14, 2007 8:49 pm Post subject: Re: Device Context of a TImage |
|
|
The Canvas member of TImage allows you to draw on the TImage. The Handle
member of TCanvas is the DC.
One caveat: accessing the Canvas member only works if the TImage isn't
storing any picture or if the stored picture is a TBitmap. If the TImage
isn't storing any picture then internally TImage will create a TBitmap the
size of the TImage when the Canvas property is accessed.
- Clayton |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|