Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Peacekeeper3

I am so desperate...

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

Advertisement
Man, asking questions is fine, but begging people to write code for you is just plain lazy. It''s a bitmap file -- there are structures defined in the Windows headers to read in the file headers, and there is no compression applied to the RGB data. That''s about as easy as it gets as far as image loading is concerned. You should *really* learn how to do this yourself, and there are programs and documentation for it everywhere.

-Ironblayde
 Aeon Software

Down with Tiberia!!

Share this post


Link to post
Share on other sites
Both Paint Shop Pro 6 and up as well as Photoshop 6 (probably earlier version of both programs can do this as well) can open tons of formats, include BMP''s, and save to a RAW format. The raw format can be configured to be just a dump of RGB data.

Otherwise, look up the following items in the MSDN: LoadImage, GetPixel, HDC, SelectObject. Then, I assume that you know how to save to files with either stdio.h or fstream.h.

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://www.gdarchive.net/druidgames/

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!