Monday, May 20, 2013
Google Custom Search

Our Community

Membership Membership:
Latest New User Latest: charmaine.gabat
New Today New Today: 1
New Yesterday New Yesterday: 2
User Count Overall: 28635

People Online People Online:
Visitors Visitors: 16
Members Members: 1
Total Total: 17

Online Now Online Now:
01: vitin32

ClearCanvas Community Forums

We've moved our Developer Forums!
To better assist our open source community, we have moved our repository and developer forums to GitHub. You can access the new developer forums on our ClearCanvas GitHub issues board.

change the windows/level
Last Post 2012-05-03 08:55 AM by chafey. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
shaaban_refay
New Member
New Member
Posts:1

--
2012-05-01 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 ??

 

chafey
Veteran Member
Veteran Member
Posts:120

--
2012-05-03 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
Copyright 2013 ClearCanvas Inc. All Rights Reserved