Jump to content
  • Advertisement
Sign in to follow this  
cdrw

where is the common c bitmap loading function?

This topic is 5057 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 havent use it in so long, its no longer on my computers, i need to read each pixel in a bitmap for the color, and i think i could do that if i could find the basic c bitmap loading function. The more basic the function the better, as long as i can still have access to the arrays of bytes it gets stored in.

Share this post


Link to post
Share on other sites
Advertisement
There is none; you have to use a library or fopen/fread. It's really simple, though; you could probably find some code on google to do it.

If you want to understand it you could find a description of the file format. It is just reading the header info to see how the image is stored and then reading the big array of pixels.

Share this post


Link to post
Share on other sites
there's no built in function for loading bitmaps that i know of. i know that many libraries for doing what you want to do have been suggested in these forums. i'd suggest searching them or giving google a whirl for a bitmap loading API.

-me

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
oh please if you have time

where is thr fopen/fread one at?

thats the one

right thur

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
ok i found tons now searching for fopen + bitmap,


thanks

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!