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 

On a background picture a picture with transparence

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





PostPosted: Fri May 04, 2007 3:13 pm    Post subject: On a background picture a picture with transparence Reply with quote



Hi, the title already says everything about my problem. I have a
Hintegrundbild in a TImage on which picture another to I would like to
paint which should be painted, however, with transparence, thus it
looks like in the example!

Example:
http://img222.imageshack.us/img222/4082/beispiel1nc3.jpg



Thx Diana
Back to top
GrandmasterB
Guest





PostPosted: Sat May 05, 2007 12:56 am    Post subject: Re: On a background picture a picture with transparence Reply with quote



"Diana Schulz" <rxoa0Xfa (AT) googlemail (DOT) com> wrote in message
news:mn.22dd7d75e704878f.57524 (AT) googlemail (DOT) com...
Quote:
Hi, the title already says everything about my problem. I have a
Hintegrundbild in a TImage on which picture another to I would like to
paint which should be painted, however, with transparence, thus it looks
like in the example!

How you do this depends on the format of the picture you want to put onto
the background. If it's a 32-bit bitmap with an alpha channel defined, you
can use the alphablend() function of the Windows GDI. If you have a 'mask'
color in the bitmap, you can use the TBitmap's Transparent functionality.
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.