Archived

This topic is now archived and is closed to further replies.

Mushu

Dx8 bit blitting

Recommended Posts

Mushu    1396
Okay - I''m trying to assign alpha values to a texture so that I can use alpha testing. I know you can do this with photoshop, however, I only have access to MS Paint to create my textures. Is there a Dx8 equivilent of bitblitting in Direct Draw 7 so that I can go through each pixel and assign it an alpha value? Or something of the sort? I haven''t been able to find any useful info, and don''t have access to the SDK. Thanks! "Yes... I use VB6. But my pong could whip you tetris''s blocks." Join Microsoft''s Guinea Pigs Research Panel Now! Click Here!

Share this post


Link to post
Share on other sites
Zorbfish    214
Do you need only one color to be transparent? If that''s the case you''re better off using D3DXCreateTextureFromFileEx and specifying the colorkey. I will set all transparent pixels to 0xff000000 and you can set your test to look for that.

If you meant more than one color for transparency I think you''ll have to check the bitmap manually.

Share this post


Link to post
Share on other sites
Dave Hunt    4872
quote:
Original post by Zorbfish
Do you need only one color to be transparent? If that''s the case you''re better off using D3DXCreateTextureFromFileEx and specifying the colorkey. I will set all transparent pixels to 0xff000000 and you can set your test to look for that.

If you meant more than one color for transparency I think you''ll have to check the bitmap manually.


Actually, it sets the transparent pixels to 0x00000000. 0xFF000000 would be opaque black.

Share this post


Link to post
Share on other sites