Pls tell me how can i produce a code that will write lets say a line or rectangle in a bitmap file. I understand that i need to have a header file which I already had written. What i do not understand is how can I exactly write to a binary file like a bitmap. I need explanations on how can i work out the problem. thank you.