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 

DDB speed difference

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Alexandre
Guest





PostPosted: Mon Oct 31, 2005 2:52 am    Post subject: DDB speed difference Reply with quote



Hi,

I've been messing with the idea of using DDBs to speed the drawing of an
alpha-blended image to a canvas surface. This has come to my mind because
of the speed I would gain copying from a DDB to the screen, however I want
to know how much is this gain and if it is worth it. Does anyone has some
measurement of this kind?
I did some informal tests and it was indeed faster using a DDB to draw to
a form surface, however when it was stretched it was much slower then the
DIB equivalent. Is that a problem with the way Delphi handles DDBs (by the
way, is a DDB in a TBitmap a pure ddb? I saw a lot of calls to dib handles
in TBitmap without any checking if it is a DIB or not) or just the way
they work with Windows?

I have asked a lot, but what I really want to know is when are DDBs faster
or slower?
And I will be using the AlphaBlend function of Windows, does it has speed
advantages against other methods (Graphics32 for instance), because of
hardware-accelerated functions for instance?

Thanks,
Alexandre Rosenfeld
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi 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.