BasiclyVisual
12-31-2003, 02:05 PM
How do I make part of an image transparent?
thanx
thanx
1/2 see-through imagesBasiclyVisual 12-31-2003, 02:05 PM How do I make part of an image transparent? thanx DeX 12-31-2003, 04:42 PM You can use TransparentBlt to copy an image from one Device Context ontop of another using a transparent colour. This means if you have one image in a picture box and another image in another picturebox, you can copy picture1 over the top of picture2 while setting a transparent or background colour for picture1. Is this what you want? rpgnewbie 12-31-2003, 07:07 PM How do I make part of an image transparent? thanx If an image is transparent you can't see it at ALL! (But i know you mean- semi-transparent). This is called "alpha transparency". For this "look" which features one image, "ghostlike" (or faded) over another I use the AlphaBlend API. Here's the thread on this forum where I have attached some demos: http://www.visualbasicforum.com/t112580.html You can also try out the AlphaBlend Sample ("Fade.zip") here: http://perso.wanadoo.fr/vbfrood/english/projects/fade.htm Note: Both these examples use a slider crontrol to adjust the level of transparency, but this is NOT necessary to use the AlphaBlend API (it just makes for a nice interactive demo). Also, because this is a 32 bit API, it is not usable under WinNT or Win95. BasiclyVisual 01-03-2004, 05:58 PM You can use TransparentBlt to copy an image from one Device Context ontop of another using a transparent colour. This means if you have one image in a picture box and another image in another picturebox, you can copy picture1 over the top of picture2 while setting a transparent or background colour for picture1. Is this what you want? I'm not sure, can it be used on images too? I looked at the webpage and it looks like giberish to me, But i've never done functions before. heres an example of what i want to do. say you got a picture in one image control and a frame in another image control, how would i make the middle of the frame transparent so than i can put it over the picture i don't think rpgnewbie's ghost effect will work in this situation... also, in way i plan to use this, the picture image will actually be many images side by side |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum