black areas in an image not drawn

blursea
08-19-2001, 03:16 PM
how can i make the black area in an image not drawn like in a game, see the attachement

Defiance
08-19-2001, 10:22 PM
What you want is an image editor with a transperency control. You can go to <p><a href="http://www.jasc.com">http://www.jasc.com</a></p> and download Paint Shop Pro 7.0, it has an image control to set a particular colour of the background the transperent. Hope it helps!

--Defiance



"It doesn't matter what broke, who died, what burned or what drowned, it's my fault!"

Spectre
08-20-2001, 04:41 AM
Transparency only works on GIFs and that is assuming you can even load a GIF with a picturebox [i dunno, i've never tried] and if you can, if it will display it transparent.
For games, the way to do transparency is dependent on what you use.
If you want simple, you use GUI calls [namely BitBlt] and you have to make a transparent mask and run some boolean operations and such and then you can do transparencies.
If you want more confusing, but more powerful and more efficient, you would use DirectX. DirectDraw in DX7 required you to set a colour key when in turn did your transparent colour(s) as transparent when you blit it.
Direct3D [the only option in DX8 as they foolishly nixed DDraw], you have to set some alphablending properties or somesuch to make it transparent. But D3d is a pain for 2d games because the dimentions on the BMP for all textures in 3d [unless i missed something] must be 2^n x 2^n.

blursea
08-20-2001, 05:17 AM
can you give a full exemple of doing bitblt for my picture

blursea
08-20-2001, 05:53 AM
how can i make the transparency in photoshop

bobthebuilder
08-20-2001, 07:03 AM
dont use photoshop. use bitblt to do it. i have an example somewhere. once i find it i will post the code

-The Builder

orufet
08-20-2001, 04:33 PM
Photoshop is fine, but what version do you have?

Jacob Sheehy
http://www.sheehy.ca

"Error, no keyboard — press F1 to continue."

blursea
08-21-2001, 04:59 AM
i have the version 6

orufet
08-21-2001, 10:20 AM
In that case, sorry, can't help you. I would suggest learning DirectX 7....

Jacob Sheehy
http://www.sheehy.ca

"Error, no keyboard — press F1 to continue."

Squirm
08-21-2001, 10:48 AM
yes, its easier than you think images/icons/smile.gif

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum