Thread: drawing on bmp file

  1. #1
    Registered User
    Join Date
    Mar 2020
    Posts
    18

    drawing on bmp file

    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.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    505
    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


  4. #4
    Registered User
    Join Date
    Mar 2020
    Posts
    18
    i didnt find it

  5. #5
    Registered User Sir Galahad's Avatar
    Join Date
    Nov 2016
    Location
    The Round Table
    Posts
    277
    Quote Originally Posted by Malcolm McLean View Post
    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.
    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$
    Last edited by Sir Galahad; 06-18-2020 at 01:09 PM. Reason: code instead of quote to disable formatting of urls

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    "...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

  7. #7
    Registered User Sir Galahad's Avatar
    Join Date
    Nov 2016
    Location
    The Round Table
    Posts
    277
    @Malcolm McLean Nice set of utilities!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. drawing gone
    By manzoor in forum C# Programming
    Replies: 0
    Last Post: 01-18-2009, 05:45 AM
  2. Drawing circle into a bitmap file
    By brokensail in forum C++ Programming
    Replies: 2
    Last Post: 10-30-2006, 01:26 AM
  3. Drawing to HDC
    By Ichmael™ in forum Windows Programming
    Replies: 5
    Last Post: 03-09-2006, 10:15 AM
  4. Drawing
    By krappykoder in forum Game Programming
    Replies: 5
    Last Post: 09-01-2004, 03:29 AM
  5. Drawing Help
    By RubenJ in forum Windows Programming
    Replies: 2
    Last Post: 10-09-2001, 03:34 PM

Tags for this Thread