[CLSCompliantAttribute(false)]public static RasterColor FromKnownColor(RasterKnownColor knownColor)
public static RasterColor fromKnownColor(long longValue);
[CLSCompliantAttribute(false)]public:static RasterColor FromKnownColor(RasterKnownColor knownColor)
def FromKnownColor(self,knownColor):
knownColor
One of the RasterKnownColor enumeration members.
The new RasterColor object.
You can use the RasterKnownColor enumeration to construct RasterColor objects from colors known by name.
using Leadtools;public void FromKnownColorExample(){// Create a yellow color (R = 255, G = 255, B = 0)RasterColor clr1 = new RasterColor(255, 255, 0);// Now create the same color using the "Yellow" known colorRasterColor clr2 = RasterColor.FromKnownColor(RasterKnownColor.Yellow);// Make sure both colors have the same valueAssert.IsTrue(clr1.A == clr2.A);Assert.IsTrue(clr1.R == clr2.R);Assert.IsTrue(clr1.G == clr2.G);Assert.IsTrue(clr1.B == clr2.B);}
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
