Gets the known color enumeration member that matches this color ARGB value.
[CLSCompliantAttribute(false)]
public RasterKnownColor GetKnownColor()
<CLSCompliantAttribute(False)>
Public Function GetKnownColor() As RasterKnownColor
[CLSCompliantAttribute(false)]
public:
RasterKnownColor GetKnownColor();
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.
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.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document