|
-
Sep 22nd, 2009, 10:45 AM
#4
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.
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
|