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




data
Buffer that holds the "Palette Color Lookup Table Data" to set.
type
Type of palette color lookup table data to set.
Sets red, green or blue "Palette Color Lookup Table" data.

Syntax

Visual Basic (Declaration) 
Public Sub SetPaletteColorLutData( _
   ByVal data() As Integer, _
   ByVal type As DicomPaletteColorLutType _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim data() As Integer
Dim type As DicomPaletteColorLutType
 
instance.SetPaletteColorLutData(data, type)
C# 
public void SetPaletteColorLutData( 
   int[] data,
   DicomPaletteColorLutType type
)
Managed Extensions for C++ 
public: void SetPaletteColorLutData( 
   int[] data,
   DicomPaletteColorLutType type
) 
C++/CLI 
public:
void SetPaletteColorLutData( 
   array<int> data,
   DicomPaletteColorLutType type
) 

Parameters

data
Buffer that holds the "Palette Color Lookup Table Data" to set.
type
Type of palette color lookup table data to set.

Example

For an example, refer to DeletePaletteColorLut.

Remarks

This method will set the data for the "Red", "Green" or "Blue" "Palette Color Lookup Table".

Before calling this method you must call SetPaletteColorLutAttributes to set the attributes of the "Palette Color Lookup Table", otherwise this method will fail and throw a DicomExceptionCode.LutDescriptorMissing exception.

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