Re: PictureBox max width

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Just now received a failure notice from ISP. So resending.

"Mike Williams" <mikea@xxxxxxxxxxxxxxxxx> wrote in message
news:u4Mm8Ww0IHA.4572@xxxxxxxxxxxxxxxxxxxxxxx
"Galen Somerville" <galen@xxxxxxxxxxxxxxxx> wrote in message
news:%236NMDJu0IHA.4336@xxxxxxxxxxxxxxxxxxxxxxx

This has to do with Heart sounds and the ECG. Usually the
height is only 100 to 150 pixels. The length depends on how
many seconds of recording and the rate (usually 2,500 Hz).
Usually we delete bytes at the start so the sound begins right
after the ECG pulse. However many times the sound towards
the end is not good, probably from stehoscope being moved,
etc. So we need to remove bytes from the end of the recording
and that's the length of display problem.

In that case, what I don't understand is why you need to store all this
data as a bitmap representing a "drawn graph" of the ECG data? This is
just data, after all, and you should store it as simple data (an array of
Singles or Longs or Bytes or whatever (depending on the range of values),
with each element of the array representing the voltage or ECG trace value
at each specific point in time. You can then draw the entire graph (or any
part of the graph) onto the display at any time you wish, and you can draw
it in realtime if you wish and at any magnification you desire. There is
no need whatsoever to store the actual bitmap that the data produces.
Using a method such as I have outlined enabled you to store a virtually
inlimited number of data samples, representing a very long "real time"
trace. The only bitmap you ever need to get involved with is the bitmap
that the user can actually see at any one time, which can never be wider
than the display itself.

Mike


The data is stored in simple data arrays. I'm presenting it on the screen as
a scrollable viewport so they can see any part of it.

The problem is erasing a section that could be much wider than the screen
display.

Download the sample program, and a data file, from
http://home.surewest.net/galen/download/resize.zip

When you run it just hit the Return key twice to get to the Menus. Pick
Patient files. then find the file I provided.

Click on Erase button and click anywhere on the upper traces. Now click and
hold the Mouse button down while you move it to the right. When it gets to
the end of the screen you will see that it Continues to scroll.

The moment you release the mouse button it deletes and re-displays.

Galen
P.S. I f you don't want to download an exe file I can put the source code on
the web site.



.



Relevant Pages

  • Re: PictureBox max width
    ... many seconds of recording and the rate. ... what I don't understand is why you need to store all this data as a bitmap representing a "drawn graph" of the ECG data? ... This is just data, after all, and you should store it as simple data, with each element of the array representing the voltage or ECG trace value at each specific point in time. ... You can then draw the entire graph onto the display at any time you wish, and you can draw it in realtime if you wish and at any magnification you desire. ...
    (microsoft.public.vb.general.discussion)
  • Re: Using SetDIBitsToDevice with C#?
    ... Again, he gets a window with the bitmap displayed, but the color map is wrong. ... public static void InitializeDIB(ref BmBitmapInfoStruct bmi, int winXSize, int winYSixe) ... private unsafe void SetupBitmap4CLand() ... // that will be used to calculate the display image. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Displaying a stored image on a form
    ... Embedded bitmap images appear as "Package" instead of "Bitmap ... to display Bitmap images. ... Whatever the original program was that served as the OLE Server to ... I then created a form on which I want to display my graphic file. ...
    (microsoft.public.access.forms)
  • Re: seperator error in __mask_snprintf_len
    ... This patch captures what I am looking for in bitmap display and input. ... * bitmap_snprintf - convert bitmap to an ASCII hex string. ... * and a length, describing the mask contents. ...
    (Linux-Kernel)
  • Re: size of Picture Control
    ... in the known universe, or at any time upgrade your machine, change its display, ... But at no time would I consider redrawing the image to "fit ... resource, set the Picture Control to Type ... Bitmap and selected in the Image field the bitmap resource. ...
    (microsoft.public.vc.mfc)