Our professor asked us to write a program in VHDL to read a bmp image and to replace the red color in the image with blue color . Any ideas how to do it please ? Thanks in advance
: Moved by Moderator
Get the specification of the Bitmap File format and start coding.
Paul schrieb: > Any ideas how to do it please ? Only for simulation? Or must it be implemented in real hardware? If the first, then check out that discussion: https://groups.google.com/forum/m/#!topic/comp.lang.vhdl/libdwhFbtNY If the second: where is your bmp image stored?
: Edited by Moderator
Only for the simulation .
I don't get why somebody gives such a task. The real quest here is to find out how to read and write a file in binary with VHDL. It doesn't teach much about VHDL in general and nothing about logic or how to describe hardware. So here is a testbench i have written years ago to read a bmp, modify and write back. You still need to understand it and implement the logic you need instead of my modify function.