Hi all,
I am developing Image viewer in WPF. I am new to DICOM and also to clearcanvas. I went through lot of posts of this forum and in result created a WPF Project which load DICOM images using the followin.
LocalSopDataSource dicomDataSource = new LocalSopDataSource(m_filePath);
ImageSop imageSop = new ImageSop(dicomDataSource);
IEnumerable images = PresentationImageFactory.Create(imageSop).ToArray();
int i = 1;
foreach (IPresentationImage presentationImage in images)
{
int Width = imageSop.Frames[i].Columns;
int height = imageSop.Frames[i].Rows;
Bitmap bmp = presentationImage.DrawToBitmap(Width, height);
m_imageList.Add(Imaging.CreateBitmapSourceFromHBitmap(bmp.GetHbitmap(), IntPtr.Zero, Int32Rect.Empty,
BitmapSizeOptions.FromWidthAndHeight(Width, height)));
i++;
}
Now I have to add support for the following things.
- window leveling
- zoom
- pan
- full screen view
- rotation
- flip
Which projects from clearcanvas code are usable for me. Where to start. Is there any sample project available in WPF?
Thanks in advance.