Printing colored blocks in C

This is a discussion on Printing colored blocks in C within the C Programming forums, part of the General Programming Boards category; I need to know how to print a colored block in C. I've looked around the web and all I ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    5

    Printing colored blocks in C

    I need to know how to print a colored block in C.

    I've looked around the web and all I found was
    Code:
    #define IMAGE_WIDTH  1
    #define IMAGE_HEIGHT 1
    #define IMAGE_LENGTH 1
    unsigned char IMAGE_DATA[] = 
    	{
    	' ',0x07
    	};
    I tried...
    Code:
    printf("%c",IMAGE_DATA);
    ...but it only prints out a upside down 'J'
    Can anyone help me with this?...please
    Last edited by acid45; 05-05-2003 at 01:04 PM.

  2. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    175
    what OS??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 02:13 AM
  2. generic printing preferences dialog box
    By stanlvw in forum Windows Programming
    Replies: 8
    Last Post: 06-27-2008, 03:20 AM
  3. printing data to a file
    By coralreef in forum C Programming
    Replies: 3
    Last Post: 11-02-2006, 08:10 PM
  4. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 04:46 AM
  5. Printing using DrawText() or TextOut()
    By Eversman in forum Windows Programming
    Replies: 1
    Last Post: 05-24-2004, 01:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21