←Select platform

RasterColor16 Method

Summary
Creates a new RasterColor16 structure with specific values for red, green and blue.
Syntax
Objective-C
+(id)colorWithRed:(int)red  
            green:(int)green  
             blue:(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#
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); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.5.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.