Is it possible to avoid decimation when drawing a bitmap?
-
I have a series of incoming byte arrays of unknown size (range can be anywhere from 1667 to 51200, but once the size is set it should stay steady for long periods but may change). The value contained in each element is a shade of grey. Currently the bitmap is in a fixed size PictureBox with the result the bitmap has a max height of 900. The incoming array is decimated to 900 for full display. The whole (or as much as is left after decimating) needs to be visible, there is no zooming. It is a waterfall display so once the bitmap width is full, the incoming array causes the oldest to "disappear". Is there a way to, something other than a bitmap or picture box perhaps, to reduce/eliminate the decimation with out having to increase the size taken up on the screen? Thanks Jim
-
I have a series of incoming byte arrays of unknown size (range can be anywhere from 1667 to 51200, but once the size is set it should stay steady for long periods but may change). The value contained in each element is a shade of grey. Currently the bitmap is in a fixed size PictureBox with the result the bitmap has a max height of 900. The incoming array is decimated to 900 for full display. The whole (or as much as is left after decimating) needs to be visible, there is no zooming. It is a waterfall display so once the bitmap width is full, the incoming array causes the oldest to "disappear". Is there a way to, something other than a bitmap or picture box perhaps, to reduce/eliminate the decimation with out having to increase the size taken up on the screen? Thanks Jim
If you have more pixels in the bitmap than will fit in the area you want to render them, then how can you render the pixels without some kind of decimation? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
If you have more pixels in the bitmap than will fit in the area you want to render them, then how can you render the pixels without some kind of decimation? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
My hope is (was?) there is some other method other than a bitmap I can use to avoid or reduce the decimation. Side note, the bitmap appears to be hard coded to a max of 32K. Yes, if there are more pixels than the bitmap will hold there will be some kind of decimation. Jim
this thing looks like it was written by an epileptic ferret Dave Kreskowiak
-
My hope is (was?) there is some other method other than a bitmap I can use to avoid or reduce the decimation. Side note, the bitmap appears to be hard coded to a max of 32K. Yes, if there are more pixels than the bitmap will hold there will be some kind of decimation. Jim
this thing looks like it was written by an epileptic ferret Dave Kreskowiak
-
My hope is (was?) there is some other method other than a bitmap I can use to avoid or reduce the decimation. Side note, the bitmap appears to be hard coded to a max of 32K. Yes, if there are more pixels than the bitmap will hold there will be some kind of decimation. Jim
this thing looks like it was written by an epileptic ferret Dave Kreskowiak
What language are you coding in? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
What language are you coding in? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
I am coding with C# in VS2005 (may be able to get access to VS2008). I will take a look at GDI+, thanks. Jim
this thing looks like it was written by an epileptic ferret Dave Kreskowiak
-
I am coding with C# in VS2005 (may be able to get access to VS2008). I will take a look at GDI+, thanks. Jim
this thing looks like it was written by an epileptic ferret Dave Kreskowiak
jimwawar wrote:
I am coding with C# in VS2005
In that case, look at the System.Drawing namespace - classes like Graphics and Bitmap. These use GDI+ internally :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
jimwawar wrote:
I am coding with C# in VS2005
In that case, look at the System.Drawing namespace - classes like Graphics and Bitmap. These use GDI+ internally :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Thanks Mark.
this thing looks like it was written by an epileptic ferret Dave Kreskowiak