←Select platform

RasterColor16 Constructor

Summary

Initializes a new RasterColor16 structure with specific values for red, green and blue.

Syntax

C#
VB
Java
Objective-C
C++
public RasterColor16( 
   int red, 
   int green, 
   int blue 
) 
Public Function New( _ 
   ByVal red As Integer, _ 
   ByVal green As Integer, _ 
   ByVal blue As Integer _ 
) 
-(id)initWithRed:(int)red  
           green:(int)green  
            blue:(int)blue; 
             
public RasterColor16( 
  int red,  
  int green,  
  int blue 
) 
             
public: 
RasterColor16(  
   int red, 
   int green, 
   int blue 
) 

Parameters

red
The red component value for the new structure. Valid values are MinimumComponent through MaximumComponent.

green
The green component value for the new structure. Valid values are MinimumComponent through MaximumComponent.

blue
The blue component value for the new structure. Valid values are MinimumComponent through MaximumComponent.

Remarks

This structure has no alpha component.

Example

C#
VB
Silverlight C#
Silverlight VB
using Leadtools; 
 
public void RasterColor16Example() 
{ 
   // create a white color 
   RasterColor16 white16 = new RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent); 
 
   // create a black color 
   RasterColor16 black16 = new RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent); 
} 
Imports Leadtools 
 
Public Sub RasterColor16Example() 
   ' create a white color 
   Dim white16 As RasterColor16 = New RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent) 
 
   ' create a black color 
   Dim black16 As RasterColor16 = New RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent) 
End Sub 
using Leadtools; 
using Leadtools.Windows.Media; 
 
public void RasterColor16Example() 
{ 
   // create a white color 
   RasterColor16 white16 = new RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent); 
 
   // create a black color 
   RasterColor16 black16 = new RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent); 
} 
Imports Leadtools 
Imports Leadtools.Windows.Media 
 
Public Sub RasterColor16Example() 
   ' create a white color 
   Dim white16 As RasterColor16 = New RasterColor16(RasterColor16.MaximumComponent, RasterColor16.MaximumComponent, RasterColor16.MaximumComponent) 
 
   ' create a black color 
   Dim black16 As RasterColor16 = New RasterColor16(RasterColor16.MinimumComponent, RasterColor16.MinimumComponent, RasterColor16.MinimumComponent) 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly