Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
GetPaintPalette Method
See Also 
Leadtools Namespace > RasterImage Class : GetPaintPalette Method




graphics
The graphics object on which this RasterImage is painted.
Returns a GDI+ palette corresponding to this RasterImage if painted on the given graphic object.

Syntax

Visual Basic (Declaration) 
Public Function GetPaintPalette( _
   ByVal graphics As Graphics _
) As ColorPalette
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim graphics As Graphics
Dim value As ColorPalette
 
value = instance.GetPaintPalette(graphics)
C# 
public ColorPalette GetPaintPalette( 
   Graphics graphics
)
Managed Extensions for C++ 
public: ColorPalette GetPaintPalette( 
   Graphics graphics
) 
C++/CLI 
public:
ColorPalette GetPaintPalette( 
   Graphics graphics
) 

Parameters

graphics
The graphics object on which this RasterImage is painted.

Return Value

a GDI+ palette

Remarks

For more information, refer to Handling Palette Changes.

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