|
-
Jul 11th, 2001, 11:32 AM
#1
Thread Starter
Lively Member
Masks?
I need some help with masks. I want to make a sprite with transperent areas around it. I know how to make the mask, but I don't know how to make the picture transperent when the prgram is running. Please help
. <--My coconut
(o) <--My L33t Coconut
http://www.megatokyo.com/
-
Jul 11th, 2001, 02:26 PM
#2
Fanatic Member
It's like this (simple):
- Draw one picture (BMP) with a black (rgb(0,0,0)) background.
- With the same pic you color all the not(BLACK) pixels
in BLACK, and the original Background black, turn it to
WHITE (rgb(255,255,255)).
- When you have those two pics draw them with BitBlt like this:
BitBlt TheOneWithBlackBack.hdc,...,vbSrcAnd
BitBlt TheOneWithWhiteBack.hdc,...,vbSrcInvert
When the black & the white backgrounds gets into a transparent back.
That's all.
Arie. (mag.up.co.il)
-
Jul 11th, 2001, 05:47 PM
#3
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)
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
|