Bitmap colour listing tool

This is a discussion on Bitmap colour listing tool within the Game Programming forums, part of the General Programming Boards category; Firstly, only I'm 99% certain this is the right forum. I created a tool for my brother that reads a ...

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Bitmap colour listing tool

    Firstly, only I'm 99% certain this is the right forum.

    I created a tool for my brother that reads a bitmap file and dumps (in a text file) a table of all the RGB values. I forget what he needed it for exactly.

    I guess someone might find the actual tool useful. If not, there's my abomination of C source to dig through - I've released it under the GNU GPL.
    Eventually, I'll upload it to our (mine and my brother's) site. Need webspace first. Heh.

    Note: The file is a .zip masquerading as a .txt. Why can't we upload .zips?

    EDIT: Just realised I said something kinda silly in the source file header - that I'm ashamed of the non-portable usage of conio.h. Silly? Yeah, I did use windows.h too
    Attached Files Attached Files
    Last edited by cboard_member; 07-18-2007 at 01:56 PM.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    I think I'll download that and have a look at it. It might come in useful in the future.

    Note: The file is a .zip masquerading as a .txt. Why can't we upload .zips?
    I think that lots of viruses must come in ZIPs, because at least one email service provider that I know of blocks them, while allowing .XLS, .PPT, etc. (Which you might think would be more prone to malware.)

    Nice avatar BTW.

    [edit] I see what you mean about the conio.h etc . . .
    Code:
    #ifndef _DEBUG
    	printf("\nPress [ENTER] to continue ...\n");
    	fflush(stdin);
    	_getch();
    #endif
    I'd also avoid profanity in code that you publish publically online. [/edit]
    Last edited by dwks; 07-18-2007 at 12:36 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by dwks View Post
    I think I'll download that and have a look at it. It might come in useful in the future.


    I think that lots of viruses must come in ZIPs, because at least one email service provider that I know of blocks them, while allowing .XLS, .PPT, etc. (Which you might think would be more prone to malware.)

    Nice avatar BTW.

    [edit] I see what you mean about the conio.h etc . . .
    Code:
    #ifndef _DEBUG
    	printf("\nPress [ENTER] to continue ...\n");
    	fflush(stdin);
    	_getch();
    #endif
    I'd also avoid profanity in code that you publish publically online. [/edit]
    Oh gawd I completely forgot about that profanity - I'll re-upload it in a minute sans dirty words

    I like sad trees.

    EDIT: Done - see original post.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with Bitmap Display
    By The Brain in forum Windows Programming
    Replies: 7
    Last Post: 03-23-2009, 05:33 AM
  2. Replies: 2
    Last Post: 03-24-2006, 07:36 PM
  3. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 08:43 AM
  4. OpenGL -- Bitmaps
    By HQSneaker in forum Game Programming
    Replies: 14
    Last Post: 09-06-2004, 04:04 PM
  5. bitmap not going onto screen
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 02-22-2003, 09:07 AM

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