Put BMP image into 2D array and edit RGB values in C -


this question has answer here:

okay guys, new c , trying construct 2d array hold bmp image , able edit rgb values. haven't been able find online how access rgb values or how put image in 2d array , stuck start. help!!!!

see reference writing bmp image in pure c/c++ without other libraries of ed heal. things note:

  • define structures. don't use arrays of unsigned chars make headers in referenced post.

  • both in reading , writing, take care fill scanlines. must multiple of four, last bytes may not pixels , contain garbage.

see earlier post what wrong code writing grey-scale bmp image rgb bmp pure c - windows os contains headers , can serve partial example.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -