Advertisement

Creating Transparent Images?

Started by July 11, 2002 12:24 PM
14 comments, last by Jonathon 22 years, 5 months ago
quote: Original post by ZealousElixir
Anyway, are you ever gonna update your site? You have a kickbutt logo, but the site''s been "Coming Soon" for a good long while now.


such is the fate of a one man army
i''ve got a few bits and pieces layin around that i started
and never finished, i suppose i could put it all together
and put it online... only problem at this point is content,
right now i''m all graphics and nothin else

my game is moving along fairly fast, so maybe i can post the
design documents or whatnot..

-eldee
;another space monkey;
[ Forced Evolution Studios ]

::evolve::

-eldee;another space monkey;[ Forced Evolution Studios ]
If youre making 2d games, I suggest you learn DirectDraw,
it lets you colorkey.
Colorkey == not displaying a color.
Advertisement
There is no use transparent background color option, Thunder Hawk, at least under XP.
Whoopie! I tried the method Thunder_Hawk suggested, and that worked very well. (I''m using Paint in Window$ 98.)

The suggestion about DirectDraw is worth looking into, I''m sure. But I write my games in Java, and want to avoid platform-specific APIs. I guess it''s really not important, since I don''t plan to sell them. (They''re pretty basic -- Memory, Breakout, Shooter, etc.)

Thanks for the advice, everyone.


Jonathon
quote: "Mathematics are one of the fundamentaries of educationalizing our youths." -George W. Bush

"When a nation is filled with strife, then do patriots flourish." - Lao Tzu

Jonathon[quote]"Mathematics are one of the fundamentaries of educationalizing our youths." -George W. Bush"When a nation is filled with strife, then do patriots flourish." - Lao Tzu America: Love it or leave it ... in the mess it's in. [/quote]
I''m sorry, it''s my fault for assuming M$ would standardize something that is very common. I wasn''t actually aware that I had 98 SE because my startup screen doesn''t say anything about it. I believe I got my computer in 99 (but I''m not sure ).

Cya later

_____________________________

And the Phoenix shall rise from the ashes...

--Thunder_Hawk -- ¦þ
______________________________
______________________________________________________________________________________The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ"So. Any n00bs need some pointers? I have a std::vector<n00b*> right here..." - ZahlmanMySite | Forum FAQ | File Formats______________________________________________________________________________________
if you are using the windows API (i.e. bitblt and co) and not directdraw or something, you should look up "masking"... basically you create a second copy of your picture, and make the parts you want black, and the parts to be transparent white, and blit them in the following order, with the following raster ops:
mask - AND
image - OR
i think, anyways, it is best to look it up.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])

This topic is closed to new replies.

Advertisement