public static void Run()
{
// ExStart:DICOMCroppingByShifts
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_DICOM();
// Load an existing image.
using (DicomImage image = new DicomImage(dataDir + "image.dcm"))
{
// Call and supply the four values to Crop method and Save the results to disk
image.Crop(1, 1, 1, 1);
image.Save(dataDir + "DICOMCroppingByShifts_out.bmp", new BmpOptions());
}
// ExEnd:DICOMCroppingByShifts
}
}