0
Reply

StripChart recorder image scaling

Bill Ulrich

Bill Ulrich

Mar 2 2010 7:55 AM
3.4k

Hi,
I'm in the process of making a strip chart using VB.net. I'm able to create a bitmap and display it to a picture box. My problems are:
1. The data I'm trying to display has a range of 0 to 4095, so I have a bitmap size of 1000, 4095. How can I display just a portion of the bitmap? For instance take a section of the bitmap and make it fill the picturebox keeping the picturebox width and scaling the y to match the height?
2. I would like to place a stationary grid over the plot data. In my charting routine, I'm shifting the bitmap to the left for every sample I take. How do I create vertical tic marks without them scrolling with the plot data?
 
Thanks for your help. I'm an RF guy stepping outside my box!