where is the common c bitmap loading function?
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.
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.
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.
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
-me
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement