Results 1 to 3 of 3

Thread: Transparancy, Mask, BitBlt

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Location
    UK
    Posts
    199

    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

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Location
    UK
    Posts
    199

    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
  •  



Click Here to Expand Forum to Full Width