|
-
Jul 2nd, 2001, 12:47 PM
#1
layered painting in a picturebox
I want do do layered painting in a picturebox,
but I can't figure out how to get the top layers transparent.
For example on layer 1 should be the background colour/picture, layer2 should have some lines, layer3 some circles.
Can anyone give me a little help?
Thanks
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jul 2nd, 2001, 01:02 PM
#2
Good Ol' Platypus
The only real way to do this would be to use DDraw, but, then again, that is a little advanced (maybe?). You can also use BitBlt to make your drawings transparent, if you don't know bitblt I can give you a link to my tut.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jul 2nd, 2001, 01:08 PM
#3
I'm using BitBlt, but not with a transparent background.
But whow do I handle the differnt layers? Whow do I store them?
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jul 2nd, 2001, 02:38 PM
#4
Good Ol' Platypus
My suggestion is make a UDT that stores an hDC, X, Y, Width, Height, and Layer. Then you can put in something to blit an array of that UDT, in the correct layer order. That's what I would do.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jul 2nd, 2001, 02:44 PM
#5
UDT= User Defined Type
I'm getting the point, hopefully ;-)
Thanks for the help I'm off for some studying
BTW could you send me the link for transparent bitblt?
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Jul 2nd, 2001, 03:25 PM
#6
Good Ol' Platypus
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jul 3rd, 2001, 04:27 PM
#7
-
Jul 3rd, 2001, 04:33 PM
#8
Good Ol' Platypus
No. The 'mask' sets which colour bits are transparent. Then the sprite gives the colour information. If you did it once then you would either have no transparency or a black silouhette.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
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
|