title: Fellow Oak DICOM - changing image window level
body: <p>I am not an experienced programmer, just need to add a DICOM viewer to my VS2010 project.  I can display the image in Windows Forms, however can't figure out how to change the window center and width.  Here is my script:</p>
  
  <pre><code>DicomImage image = new DicomImage(_filename);
              int maxV = image.NumberOfFrames;
              sbSlice.Maximum = maxV - 1;
              image.WindowCenter = 7.0;
              double wc = image.WindowCenter;
              double ww = image.WindowWidth;
  
              Image result = image.RenderImage(0);
              DisplayImage(result);
  </code></pre>
  
  <p>It did not work.  I don't know if this is the right approach.</p>