←Select platform

G Property

Summary
Gets or sets the green component of this RasterColor structure.
Syntax
C#
Objective-C
C++/CLI
Java
Python
[CLSCompliantAttribute(false)] 
public ushort G { get; set; } 
@property (nonatomic, assign) unsigned short g; 
public short getG(); 
public void setG( 
   short shortValue 
); 
[CLSCompliantAttribute(false)] 
public: 
property ushort G { 
   ushort get(); 
   void set (    ushort ); 
} 
G # get and set (RasterColor16) 

Property Value

The green component of this RasterColor structure.

Example
C#
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; 
	} 
} 
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.