Paste an image from the clipboard
Visual Basic |
---|
Public Sub Paste() |
In order for this method to succeed, the clipboard must contain data which is, or can automatically be converted to, a device independent bitmap (DIB).
Like the Import methods, this method modifies only the minimum number of attributes necessary to ensure consistency of the image. In order to produce a valid DICOM SOP instance, many other attributes (depending on the SOP class) must be added.
Depending on the format of the data on the clipboard, the resulting image may be MONOCHROME2, PALETTE COLOR, or RGB.
Note that this method can only be applied to an existing DicomImage, so this should be created first as a new object.