Jump to content
  • Advertisement
Sign in to follow this  
mmca

Microsoft Paint

This topic is 4874 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working through a book to make a game in Java, but when I edit the images in Microsoft Paint then execute the code the image's background is visible even though I still saved it as PNG? How come this happens, and whjat should I do to counter it? I've made games in shockwave before and edited images in it by deleting the background from the sprites, but whats up here? Thanks for any help. Mick

Share this post


Link to post
Share on other sites
Advertisement
You'll be needing to make the background pixels transparent.

I'm not sure how this is done in Java though, you'll need to have all your background pixels in a different colour to all other parts of the rest of the image, and make the pixels of that special colour transparent.

I can do this in SDL, but that's C++.

Share this post


Link to post
Share on other sites
What your looking for is often called color keying. Its replaces a single, specific color with a total transparancy. I should think most graphics packages support this in some form, but I have no idea about Java.

Share this post


Link to post
Share on other sites
Quote:
Original post by ukdeveloper
You'll be needing to make the background pixels transparent.


Yeah that's why I said I'd done it in shockwave gifs before, because Paint allows you to use the rubber to rub out the background pixels, then they appear transparent in the game. Although I thought it might be related to Paint and how it saves PNG, anyone any thoughts on what freeware packages are out there for editing images, I used Photoshop at college but couldn't afford to buy it, as it's the programming side of this that I'm concentrating on, just the sprites need edited.

Thanks
Mick.

Share this post


Link to post
Share on other sites
thanks man this is exactly what I was looking for, only got it, but very simple to use.

Thanks
Mick.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by smart_idiot
Fixed.

Also, I think it's funny that the Paint.NET website is running on a Linux server.


[smile] Just a little ironic isn't it? [lol]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!