Thread: How to save an 'image' from the graphics mode to HD

  1. #1
    Unregistered
    Guest

    Question How to save an 'image' from the graphics mode to HD

    What do I do to save these pixels to a (bitmap?) file like a .bmp or something similar?

    I have totally no idea, didn't findanything about it on the web or in tutorials.

    Newbie to Turbo c++ compiler 3.0, so if anything could help me a hand? help much appreciated.

    Thanks in advance,



    Ps: sorry for my bad english, it's not my native language

  2. #2
    Unregistered
    Guest
    Wanted to edit my former post, but as non-registered I can't.
    So sorry, I didn't want to do any unnessescary bumping.

    Wanted to say:

    Should I have posted it in the DOS C forum instead?
    And is it unpossible to write the pixels to a bitmap file with some 'simpl"' short code?

  3. #3
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    bmp files are relatively simple, being uncompressed. you could try looking at the bmp file and deriving its structure. or you could search online for the structure. i remember a site on file formats, but i forget where that was...
    //edit: ah, here:
    http://www.daubnet.com/formats/BMP.html
    Last edited by ygfperson; 07-13-2002 at 07:30 PM.

  4. #4
    Unregistered
    Guest
    Originally posted by ygfperson
    bmp files are relatively simple, being uncompressed. you could try looking at the bmp file and deriving its structure. or you could search online for the structure. i remember a site on file formats, but i forget where that was...
    //edit: ah, here:
    http://www.daubnet.com/formats/BMP.html

    deriving it's structure ??? :-/ what do you mean? Import it (ifstream) as a binary file???
    Sorry, I'm just a beginner.

    I'll go to the site, thanks mate!

  5. #5
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    forget what i said about deriving its structure. i don't know what i was thinking...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Image Processing
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-19-2009, 12:10 PM
  2. Replies: 12
    Last Post: 11-20-2007, 09:35 AM
  3. Mode 19 Graphics in Turbo C++
    By destroyerBEACON in forum Game Programming
    Replies: 8
    Last Post: 02-16-2002, 01:27 AM
  4. How to accept input in graphics mode
    By nurulsiddik in forum C Programming
    Replies: 1
    Last Post: 02-13-2002, 10:40 AM
  5. Text in Dos Graphics Mode
    By Frozen_Solid in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-25-2001, 04:16 PM