Jump to content
  • Advertisement
Sign in to follow this  
emubreath

getting the color of a pixel

This topic is 3928 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

in a game I'm planning, I have maps, which have abstract shapes. I want to be able to import an image, and, in java, create a map based on the image. I want to read in the image and take all the nontransparent pixels and put that in the map. all the transparent pixels will just be disregarded. Is there any way that I can do this?

Share this post


Link to post
Share on other sites
Advertisement
The way to get the value of an individual pixel in an image depends on the library you use to load the image and perhaps the format of the image data.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!