Parameters
- From
The current index in the collection
- To
The destination index for the image within the collection
The current index in the collection
The destination index for the image within the collection
The current index in the collection
The destination index for the image within the collection
DicomImageCollection imageCollection = new DicomImageCollection(); DicomImage image1 = new DicomImage("your_dicom_image1.dcm"); DicomImage image2 = new DicomImage("your_dicom_image2.dcm"); DicomImage image3 = new DicomImage("your_dicom_image3.dcm"); imageCollection.Add(image1); imageCollection.Add(image2); imageCollection.Add(image3); // Order before: [image1, image2, image3] imageCollection.Move(1, 2); // Order After: [image1, image3, image2]