[CLSCompliantAttribute(false)]public ushort B { get; set; }
<CLSCompliantAttribute(False)>Public Property B As UShort
@property (nonatomic, assign) unsigned short b; public short getB()public void setB(short value)
The blue component of this RasterColor16 structure.
using Leadtools;public void RasterColor16ComponentsExample(){// This C# example shows how to create a normal grayscale LUT.RasterColor16[] lut = new RasterColor16[1024];RasterColor16 color = new RasterColor16(0, 0, 0);for (ushort i = 0; i < 1024; i++){int gray = i * 65535 / 1023;color.R = (ushort)gray;color.G = (ushort)gray;color.B = (ushort)gray;lut[i] = color;}}
Imports LeadtoolsPublic Sub RasterColor16ComponentsExample()' This C# example shows how to create a normal grayscale LUT.Dim lut As RasterColor16() = New RasterColor16(1023) {}Dim color As RasterColor16 = New RasterColor16(0, 0, 0)For i As UShort = 0 To 1023Dim gray As Integer = CInt(i * 65535 / 1023)color.R = CUShort(gray)color.G = CUShort(gray)color.B = CUShort(gray)lut(i) = colorNext iEnd Sub
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
