Do you have a question?

First Name:
Surname:
Email:
Phone:
Message:
Get Audio Code

change the windows/level
Last Post 03 May 2012 08:55 AM by Chris Hafey. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
Shaaban RUser is Offline
New Member
New Member
Posts:1

--
01 May 2012 07:31 AM  

 Am trying to make simple wpf viewer and when representing image i used this code 

 

       public BitmapSource CurrentFrameData(ClearCanvas.ImageViewer.StudyManagement.Frame frm)

        {

            IPresentationImage presentationImage =

                    PresentationImageFactory.Create(frm);

            int width = frm.Columns;

            int height = frm.Rows;

 

            System.Drawing.Bitmap bmp = presentationImage.DrawToBitmap(width, height);

           

             BitmapSource output = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(

              bmp.GetHbitmap(),

              IntPtr.Zero,

              Int32Rect.Empty,

              BitmapSizeOptions.FromWidthAndHeight(width, height));

 

        return output;

}

and Now i want to change the windows/level so what to do ??

 

Chris HafeyUser is Offline
Basic Member
Basic Member
Posts:120

--
03 May 2012 08:55 AM  
Always try searching the forum before posting, this question was answered in this same forum just a few weeks back:

http://www.clearcanvas.ca/dnn/Community/Forums/tabid/69/aff/2/aft/13774/afv/topic/Default.aspx
You are not authorized to post a reply.

Active Forums 4.1