Error processing SSI file
LEADTOOLS (Leadtools assembly)

Show in webframe

B Property (RasterColor16)








Gets or sets the blue component of this RasterColor16 structure.
Syntax
[CLSCompliantAttribute(false)]
public ushort B {get; set;}
'Declaration
 
<CLSCompliantAttribute(False)>
Public Property B As UShort
'Usage
 
Dim instance As RasterColor16
Dim value As UShort
 
instance.B = value
 
value = instance.B
[CLSCompliantAttribute(false)]
public ushort B {get; set;}
@property (nonatomic, assign) unsigned short b;
public short getB()
public void setB(short value)
            
CLSCompliantAttribute()
 <br/>get_B();<br/>set_B(value);<br/>Object.defineProperty('B'); 
[CLSCompliantAttribute(false)]
public:
property ushort B {
   ushort get();
   void set (    ushort value);
}

Property Value

The blue component of this RasterColor16 structure.
Example
Copy Code  
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;

      
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;
   }
}
RasterColorExamples.prototype.RasterColor16ComponentsExample = function ( )
{
   with ( Leadtools)
   {
      // This C# example shows how to create a normal grayscale LUT.
      var lut = new Array(1024);
      var color = RasterColor16Helper.create(0, 0, 0);

      for(var i = 0; i < 1024; i++)
      {
         var gray = Math.floor(i * 65535 / 1023);
         color.r = Math.floor(gray);
         color.g = Math.floor(gray);
         color.b = Math.floor(gray);
         lut[i] = color;
      }
   }
}
using Leadtools;

      
public void RasterColor16ComponentsExample()
{
   // This C# example shows how to create a normal grayscale LUT.
   RasterColor16[] lut = new RasterColor16[1024];
   RasterColor16 color = RasterColor16Helper.Create(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;
   }
}
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

      
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
Requirements

Target Platforms

See Also

Reference

RasterColor16 Structure
RasterColor16 Members

Error processing SSI file