Sign in to follow this  

where is the common c bitmap loading function?

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

This topic is 4775 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this