Sign in to follow this  

Handling bitmaps in c++

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

Hey guyz. I want to make a program that will procedurally generate a texture for a heightmap. the question is how do i manipulate the bitmap file(s) with c++? i mean i just need to load file, manipulate the pixels, and save the result in another file. so... how do i load / save bmp's manually? (without any 3rd pty libs) and i know, there probably are other apps that do this, but i want to reinvent the wheel this time :D getting a bit rusty so a little practice would do some good:)

Share this post


Link to post
Share on other sites
Look at boost::gil, they've done some really good work there and have loaders/savers for a lot of formats as plugins if you want. If you want to image manipulation in a format independent fashion it is almost a must have.

Documentation here.

Share this post


Link to post
Share on other sites

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