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
        }
        public static void Run()
        {
            //ExStart:AdjustGammaDICOM
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_DICOM();

            using (var fileStream = new FileStream(dataDir + "file.dcm", FileMode.Open, FileAccess.Read))
                using (DicomImage image = new DicomImage(fileStream))
                {
                    // 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
        }
        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
        }