Retrieves the "Overlay Data" (60xx,3000) for the specified overlay index.
public Leadtools.RasterImage GetOverlayImage(
int index
)
Public Function GetOverlayImage( _
ByVal index As Integer _
) As Leadtools.RasterImage
public Leadtools.RasterImage GetOverlayImage(
int index
)
public RasterImage getOverlayImage(int index)
function Leadtools.Dicom.DicomDataSet.GetOverlayImage(
index
)
public:
Leadtools.RasterImage^ GetOverlayImage(
int index
)
index
The zero-based index of the overlay whose image is required.
Image filled with the overlay data.
This method will extract the "Overlay Data" (60xx,3000) for an overlay, initialize the returned image based on the "Overlay Columns" (60xx,0011) and "Overlay Rows" (60xx,0010), and then fill the image with the stream of bytes under the "Overlay Data" (60xx,3000) element. If the method does not find the "Overlay Data" element inside the Data Set it will throw an DicomExceptionCode.OverlayDataMissing exception.
Before calling this method you must call GetOverlayAttributes to determine if the overlay pixel data is embedded in the "Image Pixel Data" (7FE0,0010) element or is under the "Overlay Data" (60xx,3000) element. If the overlay data is embedded in the "Image Pixel Data", UseBitPlane will be set to true in the attributes returned by GetOverlayAttributes.
If the overlay pixel data is embedded in the "Image Pixel Data" (7FE0, 0010), follow these steps to get the overlay data:
Now we need to add our overlay as one of the overlays associated with mainImage. To do that, we need to call SetOverlayAttributes:
mainImage.UpdateOverlayAttributes(0, overlayAttributes, RasterGetSetOverlayAttributesFlags.Flags | RasterGetSetOverlayAttributesFlags.BitIndex | RasterGetSetOverlayAttributesFlags.Origin | RasterGetSetOverlayAttributesFlags.Dicom | RasterGetSetOverlayAttributesFlags.Color);
We are assuming that this is the first overlay in the image; this is why we are passing 0 as the overlay index.
Now we need to extract the overlay data from the main image data:
mainImage.UpdateOverlayBits(0, RasterUpdateOverlayBitsFlags.FromImage);
Now call mainImage.GetOverlayImage to get the overlay data itself as a raster image.
For an example, refer to OverlayCount.
Products |
Support |
Feedback: GetOverlayImage Method - Leadtools.Dicom |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.