rws
Member
Apologies if this is obvious...
Im using VB in VS.NET Pro.
I want to update a plot of data as the data comes in the serial port.
I maintain a Bitmap on which I plot the data. Every time a new point comes in, I update the Bitmap and invalidate the control (a Panel).
During the Panels Paint event, I grab the graphics object and draw
the entire Bitmap image.
It works, but the Panel flickers annoyingly as the entire Bitmap is redrawn. My PC runs at 2.4GHz.
Is there a way to draw just the new data, without redrawing the old data (axes, tick marks, previous points)?
Thanks.
P.S. I did try using a Metafile instead of a Bitmap, but I was unsuccessful at appending data to an existing Metafile.
Im using VB in VS.NET Pro.
I want to update a plot of data as the data comes in the serial port.
I maintain a Bitmap on which I plot the data. Every time a new point comes in, I update the Bitmap and invalidate the control (a Panel).
During the Panels Paint event, I grab the graphics object and draw
the entire Bitmap image.
It works, but the Panel flickers annoyingly as the entire Bitmap is redrawn. My PC runs at 2.4GHz.
Is there a way to draw just the new data, without redrawing the old data (axes, tick marks, previous points)?
Thanks.
P.S. I did try using a Metafile instead of a Bitmap, but I was unsuccessful at appending data to an existing Metafile.