Article View: comp.os.ms-windows.programmer.tools.mfc
Article #153subject: x-y-color graphs ?
From: David A. Cary
Date: Fri, 24 May 1996 00:00
Date: Fri, 24 May 1996 00:00
41 lines
2236 bytes
2236 bytes
subject: x-y-color graphs ? I'm going to have to do some scientific-style graphics soon. Is there any convenient software *source* out there that I can call with a 2D array of data and a palette of colors, and it will display the classic pseudo-color type pictures ? (a grid on the screen, each cell filled with a color corresponding to the data value in the array.) Surely this has been done hundreds of times before. I already have the program written that collects the data and saves it to disk. I *could* "manually" graph it up in Excel using its 3D graphs, but I want a program to continuously alternate between generating the data and graphing the data, in "near-real-time". If only I had the source code for Excel :-(, I could cut-and-paste the appropriate function. (I'd even be willing to learn OLE if it looked like that was easier than writing the silly thing from scratch). Oh, and it would be nice if the source were in C and could work with Windows. And also displayed a appropriately-formatted legend. I have MSVC++4.0 and MSVC++1.52c and Borland C++ 4.0 and Symantec C++. (They all can use MFC, right ?) The examples that came with MSVC show how to call a function that loads a DIB and displays it, but I couldn't figure out how to just *create* a DIB. And when I tried to just directly draw things on the screen with SetPixelIV(), no matter what colors I request with RGB(red, green, blue), I always get the same set of about 10 colors, *not* the colors I wanted. Please email me a copy of any replies you post (sometimes my newsfeed is flakey). I'll try to post a summary. prefer: David Cary <d.cary@ieee.org> future tech (includes the PCMCIA PC Card FAQ): <http://www.rdrop.com/~cary/> <*>
Technical Details
Message-ID:
<ADCBB8DF96681E8044@199.2.212.47>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1138df,31c05158b6f2f0e1,start X-Google-Attributes: gid1138df,public X-Google-Thread: 1025b4,31c05158b6f2f0e1,start X-Google-Attributes: gid1025b4,public From: d.cary@ieee.org (David A. Cary) Subject: subject: x-y-color graphs ? Date: 1996/05/24 Message-ID: <ADCBB8DF96681E8044@199.2.212.47> X-Deja-AN: 156631491 organization: rarely. newsgroups: comp.os.ms-windows.programmer.tools.mfc,gnu.misc.discuss