Back to Browse

Programming Challenges - 18 - BMP Image Editor (C++)

2.6K views
Streamed live on Jul 24, 2020
1:23:15

*****NOTE I made a mistake in calculating the amount of padding, which has been fixed in the latest commit here: https://github.com/michaelg29/yt-challenges/commit/2a0f1428e1bbeb01a4405fbeebe6ce711e854a75#diff-84c4ecc17c1586b2296a544e1cb5e6af I also added two accessor methods for the width and height, and I fixed an implicit conversion issue. The latter was that when calling setPixel with double values, it caused a stack overflow because it kept calling the same method, as it calculated the same values that resulted in doubles once again. ***** In this challenge, we look to creating BMP Images, or Bitmap Images using C++. We create a class for an image that allows us to read, write, and perform several operations on these images (scaling, etc). Transformations: • Scaling • Rotating • Reflecting • Cropping • BMP Header File: https://github.com/michaelg29/yt-challenges/blob/master/18%20-%20BMP%20Images/bmp.h • BMP Image: https://raw.githubusercontent.com/michaelg29/Programming/master/CPP/OpenGL/perlin/in.bmp • BMP File Structure: https://en.wikipedia.org/wiki/BMP_file_format#File_structure • BMP Header Info: https://web.archive.org/web/20080912171714/http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html • Website: https://michaelg29.github.io/ • Twitter: https://twitter.com/MichaelGrieco10 • Discord: https://discord.gg/Uj54bDF • This Github Repo: https://github.com/michaelg29/yt-challenges • This Playlist: https://www.youtube.com/playlist?list=PLysLvOneEETP-XQZQ6VTdMIHmxbGxX6nX Listened to the album, Excursions, by C418 (c418.org).

Download

1 formats

Video Formats

360pmp4122.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Programming Challenges - 18 - BMP Image Editor (C++) | NatokHD