BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TBitmap's Transparent changing time cost

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Goran Bervar
Guest





PostPosted: Tue Apr 19, 2005 7:41 am    Post subject: TBitmap's Transparent changing time cost Reply with quote



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





PostPosted: Tue Apr 19, 2005 6:44 pm    Post subject: Re: TBitmap's Transparent changing time cost Reply with quote




"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





PostPosted: Wed Apr 20, 2005 11:24 am    Post subject: Re: TBitmap's Transparent changing time cost Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.