Results 1 to 5 of 5

Thread: Alpha blended non rectangular form in VB6

Threaded View

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

    Re: Alpha blended non rectangular form in VB6

    Unfortunately, drawing on bitmaps with the alpha-channel in play is not straightforwared and does have a learning curve. The basics should be addressed first. Here are some things you will have to read up on to begin with
    1. Learn how to create/use/destroy a memory DC
    2. Learn how to create/use/destroy a memory bitmap
    3. If not using GDI+, learn how to premultiply RGB values against the Alpha value
    4. If using GDI+, learn how to use GDI+ for basic drawing and for drawing strings

    After you are comfortable with the above, then providing examples would be more meaningful. Drawing controls onto the 32bit bitmap is a bit complicated but doable.

    Here is a site that has good info on bitmaps in general and basics on manipulating them. 32bit bitmaps for alpha-channel processing are not addressed, but the site has some very good basics.

    You also may want to look at some of these examples on planetsourcecode.

    Edited: Searching this forum and googling for "UpdatedLayeredWindow" and "VB6" should return even more examples.
    Last edited by LaVolpe; Sep 22nd, 2009 at 10:53 AM.
    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}

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