Thread: output graphics to .txt

  1. #1

    output graphics to .txt

    I have a 2D array of integer values, each with a corresponding bmp image. Is there a way to output the array in graphic format to a txt file?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Sure is.
    How depends on the way you want to represent it though.
    plz spec. exactly what you want in the txt.

    btw; Does each element in the 2d array containt the value for one pixel, in that case every "element" would need to be an array of 3 bytes, which would make you array a 3darray instead of a 2d, or perhaps your array is an array of structure objects.

    Specify what you have done and what you want to a little bit more exact and we might be able to help you.


  3. #3
    Registered User
    Join Date
    Feb 2002

    Unhappy more specifically

    I am completely new to this, so please bear with me.
    I'm using Borland C 4.5.
    The array represents a 2D battlefield, with 'units' represented by a single integer in it, or empty.
    The output file is text, and at several places, it will need to display the current state of the battlefield, with the text wrapped around it.
    I have bmp images to represent each of the integers, but no idea how to transfer them to the output file. Where do I start?

    Thanks for the response.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. code output...
    By roaan in forum C Programming
    Replies: 6
    Last Post: 07-03-2009, 02:22 AM
  2. Help for my output array
    By qwertysingh in forum C Programming
    Replies: 1
    Last Post: 02-17-2009, 03:08 PM
  3. execl()/fork() output
    By tadams in forum C Programming
    Replies: 19
    Last Post: 02-04-2009, 03:29 PM
  4. Formatting output into even columns?
    By Uncle Rico in forum C Programming
    Replies: 2
    Last Post: 08-16-2005, 05:10 PM
  5. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM