Page 1 of 1

Display Question

Posted: Thu Jan 11, 2007 12:24 am
by Jeff Barnes
Hi Everybody,

This may seem like an odd question but....

When displaying data on a screen in a graphical format I have seen programs that plot a datapoint every second ... for easy math lets say they collected data for one hour (3600 datapoints) and to keep it even easier lets say the data is all the same value. They give you the option to view the data in different time setups: 5 minutes, 30 minutes or all the data at one time.

Here is my question ...

If you select the option that shows you ALL the data (3600 datapoints) how are they displaying this info on the screen ...

For example: On my system I have the screen setup to 1024 x 768.
This means I have 1024 pixels I can turn on (in one line). Since all the datapoints are the same value I should end up with a straight line BUT how can I display more than 1024 datapoints?

Does anyone have a clue as to how this is done ?


Thanks,

Jeff

Re: Display Question

Posted: Thu Jan 11, 2007 8:19 am
by Enrico Maria Giordano
There are two choices that come up to my mind:

1. Divide X coords by a factor to keep them in the video range

2. Display the points on a control that can be horizontally scrolled

EMG

Posted: Thu Jan 11, 2007 2:50 pm
by Jeff Barnes
Hi Enrico,

I tried to display the points on a window with HSCROLL added to the DEFINE... line but nothing happens when I try to scroll.

Jeff

Posted: Thu Jan 11, 2007 2:56 pm
by Enrico Maria Giordano
You may try drawing the points on a bitmap hDC and then displaying that bitmap on a TBitmap control.

EMG