|
-
Nov 4th, 2011, 02:40 PM
#1
Thread Starter
Addicted Member
Transparancy, Mask, BitBlt
Hi Guys
I have searched and searched, and cannot find a solution that fits my needs (at least not one I can understand!!)
I have an image I wish to display, either as form.picture or in a picture/image box - which has a mask colour background rgb(255,0,255)
How do I make this RGB(255,0,255) region transparent?
Many Thanks In Advance.
Paul
-
Nov 4th, 2011, 03:23 PM
#2
Re: Transparancy, Mask, BitBlt
What you may have seen on the net is the old-fashioned way of creating masks on the fly and in-effect end up with one color replaced throughout with a destination pixel of the same coordinates.
There is a much easier method since Win2K: TransparentBlt
It is easy to use & an example link exists at bottom of that page
Note that the API should not be used on Win9x systems.
No method will work with an image control. To support transparency with an image control requires reformatting the result as transparent gif or icon
-
Nov 4th, 2011, 06:34 PM
#3
Thread Starter
Addicted Member
Re: Transparancy, Mask, BitBlt
Excellent - Many, many thanks.
Tags for this Thread
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
|