I have a (spectrographic profile) data set of Wavelength (x-axis) and Intensity (y-axis, in arbitrary units that can have different ranges...)
I want to convert this numeric data to a graphical view as shown at the bottom of the image below.
But, I've never done anything in Delphi (2010) with Canvas's, TImages, bitmaps, or whatever way I'd get this to the screen.
(Obviously, if I can convert my data to one row of image pixels, I then simply copy that row as many times as needed for my desired image height.)
Can anyone point me in the right direction or supply sample code that traverses the x,y values, creating the color image? I'm hoping my solution will allow me (or the user) to adjust levels (contrast, brightness).
Thanks in advance.
Related SO posts: http://stackoverflow.com/questions/2374959/algorithm-to-convert-any-positive-integer-to-an-rgb-value
http://stackoverflow.com/questions/1472514/convert-light-frequency-to-rgb