LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

GetKnownColor Method (RasterColor)






Gets the known color enumeration member that matches this color ARGB value. .NET support
Syntax
[CLSCompliantAttribute(false)]
public RasterKnownColor GetKnownColor()
'Declaration
 
<CLSCompliantAttribute(False)>
Public Function GetKnownColor() As RasterKnownColor
'Usage
 
Dim instance As RasterColor
Dim value As RasterKnownColor
 
value = instance.GetKnownColor()
[CLSCompliantAttribute(false)]
public RasterKnownColor GetKnownColor()
CLSCompliantAttribute()
 function Leadtools.RasterColor.GetKnownColor()
[CLSCompliantAttribute(false)]
public:
RasterKnownColor GetKnownColor(); 

Return Value

An RasterKnownColor enumeration member that matches this color ARGB value. If the color ARGB value does not match any known color, RasterKnownColor.Black is returned.
Remarks

This method does a comparison of the ARGB values. Therefore, the GetKnownColor method might return a valid RasterKnownColor enumeration member even if this RasterColor was no creating using the FromKnownColor method.

To check whether this RasterColor has a matching RasterKnownColor, use IsKnownColor.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterColor Structure
RasterColor Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.