|
-
Aug 15th, 2002, 07:09 AM
#1
Thread Starter
Fanatic Member
transparency
I tried to make 1 color of an image trasparent in VB.Net. But it just changes that color in the form background color. In VB6 it was possible to use a gif with a transparent color, but that doesnt work either. Can someone help me with this?
-
Aug 15th, 2002, 05:15 PM
#2
Fanatic Member
Erm...
I dont know .Net just yet, but have you tried using GDI+? There is something like bitblt but i dont know what its called, and you tell it a mask color, and it just makes that color transparent.
check out:
http://www.allapi.net/ or http://www.vbapi.com/
For some info on BitBlt and its .Net version (it could be called something else).
Regards,
MoMad
-
Aug 18th, 2002, 07:46 PM
#3
-
Aug 19th, 2002, 12:00 PM
#4
Hyperactive Member
I use transblit but you gotta really know how to kill your objects to use it. I suggest debugwriting objectcreated = objectcreated+1 for every time you create anything and objectcreated = objectcreated-1 for every time you kill something. Using this I found I was not using transblit correctly and was able to address my code accordingly. I can now loop through it from now untill next month without loosing any resources.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|