Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
SetOverlayImage Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class : SetOverlayImage Method




index
The zero-based index of the overlay being affected.
overlayImage
Image which will be used to update the overlay data. Cannot be null.
Sets the "Overlay Data" (60xx,3000) for a certain overlay index.

Syntax

Visual Basic (Declaration) 
Public Sub SetOverlayImage( _
   ByVal index As Integer, _
   ByVal overlayImage As RasterImage _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim index As Integer
Dim overlayImage As RasterImage
 
instance.SetOverlayImage(index, overlayImage)
C# 
public void SetOverlayImage( 
   int index,
   RasterImage overlayImage
)
Managed Extensions for C++ 
public: void SetOverlayImage( 
   int index,
   RasterImage overlayImage
) 
C++/CLI 
public:
void SetOverlayImage( 
   int index,
   RasterImage overlayImage
) 

Parameters

index
The zero-based index of the overlay being affected.
overlayImage
Image which will be used to update the overlay data. Cannot be null.

Example

For an example, refer to OverlayCount.

Remarks

This method will update the stream of bytes under the "Overlay Data" (60xx, 3000) element with the data in the passed image.

This method will fail if the image width does not match the "Overlay Columns" (60xx, 0011) or if the image height does not match the "Overlay Rows" (60xx, 0011) for the overlay being updated.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features