I need to write a DICOM multi-frame image application. Each frame is stored in JPEG format. All frames are stored sequentially in one file. Right now I am reading the data of each frame and passing it to the following procedure to build a bitmap for display:
Bitmap CreateBitmap(byte[] pixelBuffer, int frameSize)
{
Bitmap image = null;
try
{
long startTicks = DateTime.Now.Ticks;
MemoryStream pixelStream = new MemoryStream(pixelBuffer, 0, frameSize);
image = new Bitmap(pixelStream);
loadTime = DateTime.Now.Ticks - startTicks;
}
catch (Exception ex)
{
Log.LogException(ex);
}
return image;
}
, , . 800x600 , , 0 15 ( ). 1024x768 , , 15 31 . - ( 1024x768) 60 . , JPEG 15 . , - ?