where is the common c bitmap loading function?

Started by
3 comments, last by GameDev.net 19 years, 5 months ago
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.
"am i supposed to be able to do sh_t with this?" oink snort
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.
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
oh please if you have time

where is thr fopen/fread one at?

thats the one

right thur
ok i found tons now searching for fopen + bitmap,


thanks

This topic is closed to new replies.

Advertisement