There are 2 methods within DicomObjects that can be used to create a Thumbnail image (PrinterImage and SubImage). If you want to create an icon for the purpose of inclusion into the embedded icon sequence attribute (&H88,&H200) of an image then use the PrinterImage method. The reason for using PrinterImage is that the resultant image only contains minimalist image information (the &H28 group) and the icon sequence attribute only permits attributes from the &H28 group to be included. SubImage on the other hand adds all attributes from the original image to the resultant image.
To create a thumbnail with the PrinterImage method use the following code:
Dim ModifiedImage as new DicomImage Set ModifiedImage = MyDicomImage.PrinterImage(Bits, Planes, ShowAnnotations, Zoom, Left, Right, Top, Bottom)
The SubImage method provides and easy way of creating a small thumbnail representation of the original Dicom Image. The difference between sub image and printer image is that subimage copies all attributes to the new image. The parameters of SubImage are (XOffset, YOffset, XSize, YSize, Magnification, Frame)
To create a thumbnail with the SubImage method use the following code:
DicomImage.SubImage(XOffset, YOffset, XSize, YSize, Magnification, Frame)
Thumbnails can be added to an Image under the Icon Sequence Attribute (&H88, &H200). See Adding Sequence Items using DicomObjects
Follow this link for information on how to retrieve the Image Icon - Query Image Icon