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




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

Syntax

Visual Basic (Declaration) 
Public Function GetPaintColors( _
   ByVal graphics As Graphics _
) As RasterColor()
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim graphics As Graphics
Dim value() As RasterColor
 
value = instance.GetPaintColors(graphics)
C# 
public RasterColor[] GetPaintColors( 
   Graphics graphics
)
Managed Extensions for C++ 
public: RasterColor[]* GetPaintColors( 
   Graphics graphics
) 
C++/CLI 
public:
array<RasterColor>^ GetPaintColors( 
   Graphics graphics
) 

Parameters

graphics
The graphics object on which this image is painted.

Return Value

An array of color for the palette

Remarks

For more information, refer to Color Halftone and Halftone Images.

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