hello guys i need to draw on bmp file and i dont know how to do it ?
does anyone have an idea how to do it ?
i didnt find any help on internet.
hello guys i need to draw on bmp file and i dont know how to do it ?
does anyone have an idea how to do it ?
i didnt find any help on internet.
Following on from your previous post.
Reading bmp file to 2d array
You read in a BMP into a 2D array of pixels.
You modify some of those pixels in some way.
You write out a BMP to a new file.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Go to my website and look at the Baby X resource compiler. It contains a file called bmp.c which provides functions for loading and saving .bmp files.
I'm the author of MiniBasic: How to write a script interpreter and Basic Algorithms
Visit my website for lots of associated C programming resources.
https://github.com/MalcolmMcLean
i didnt find it
Nope, looks like a 404.
Code:galahad@cmc563:~/tmp$ git clone https://github.com/MalcolmMcLean/babyx Cloning into 'babyx'... remote: Enumerating objects: 89, done. remote: Counting objects: 100% (89/89), done. remote: Compressing objects: 100% (70/70), done. remote: Total 767 (delta 35), reused 58 (delta 19), pack-reused 678 Receiving objects: 100% (767/767), 7.29 MiB | 3.52 MiB/s, done. Resolving deltas: 100% (319/319), done. galahad@cmc563:~/tmp$ cd babyx galahad@cmc563:~/tmp/babyx$ find . -iname *bmp* galahad@cmc563:~/tmp/babyx$
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
@Malcolm McLean Nice set of utilities!