Gets or sets the blue component of this RasterColor16 structure.
[CLSCompliantAttribute(false)]
public ushort B {get; set;}
<CLSCompliantAttribute(False)>
Public Property B As UShort
[CLSCompliantAttribute(false)]
public ushort B {get; set;}
@property (nonatomic, assign) unsigned short b;
public short getB()
public void setB(short value)
CLSCompliantAttribute()
get_B();
set_B(value);
Object.defineProperty('B');
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 Leadtools
Public 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 1023
Dim gray As Integer = CInt(i * 65535 / 1023)
color.R = CUShort(gray)
color.G = CUShort(gray)
color.B = CUShort(gray)
lut(i) = color
Next i
End Sub
using Leadtools;
using Leadtools.Windows.Media;
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 Leadtools
Imports Leadtools.Windows.Media
<TestMethod>
Public 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 1023
Dim gray As Integer = i * 65535 / 1023
color.R = CUShort(gray)
color.G = CUShort(gray)
color.B = CUShort(gray)
lut(i) = color
Next i
End Sub
Products |
Support |
Feedback: B Property (RasterColor16) - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.