| View previous topic :: View next topic |
| Author |
Message |
Goran Bervar Guest
|
Posted: Tue Apr 19, 2005 7:41 am Post subject: TBitmap's Transparent changing time cost |
|
|
Hi all,
A short (probably FAQ) question - what is the time penalty of changing the
TBitmap's Transparent property? Is it only the flag setter or is there any
computation overhead in VCL and/or Windows API?
goran
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Apr 19, 2005 6:44 pm Post subject: Re: TBitmap's Transparent changing time cost |
|
|
"Goran Bervar" <n.e.b.e.r.e.m (AT) yahoo (DOT) com> wrote
| Quote: | what is the time penalty of changing the TBitmap's Transparent property?
Is it only the flag setter or is there any computation overhead in VCL
and/or Windows API?
|
The Transparent property is exposed at the TGraphic level. Not all TGraphic
descendants, including TBitmap, utilze the Transparent property at all.
TBitmap has its own TransparentColor and TransparentMode properties instead.
There may be some overhead in changing those property values as the
underlying bitmap data may have to be adjusted accordingly.
Gambit
|
|
| Back to top |
|
 |
Goran Bervar Guest
|
Posted: Wed Apr 20, 2005 11:24 am Post subject: Re: TBitmap's Transparent changing time cost |
|
|
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
The Transparent property is exposed at the TGraphic level. Not all
TGraphic
descendants, including TBitmap, utilze the Transparent property at all.
|
Hmm.... I must think that you are corect as you normally are. Than
TBitmap::Transparet property will actually utilize in TCanvas::Draw() right?
If so I am just happy
as this is exactly what I'd like.
goran
|
|
| Back to top |
|
 |
|