public static void Run()
{
// ExStart:AdjustGammaDICOM
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_DICOM();
// Load a DICOM image in an instance of DicomImage
using (DicomImage image = new DicomImage(dataDir + "image.dcm"))
{
// Adjust the gamma and Create an instance of BmpOptions for the resultant image and Save the resultant image
image.AdjustGamma(50);
image.Save(dataDir + "AdjustGammaDICOM_out.bmp", new BmpOptions());
}
// ExEnd:AdjustGammaDICOM
}
}