G Property (original) (raw)
Summary
Gets or sets the green component of this RasterColor structure.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public byte G { get; set; }
@property (nonatomic, assign) unsigned char g
public void g(
int intValue
);
public:
property byte G {
byte get();
void set ( byte );
}
Property Value
The green component of this RasterColor structure.
Example
using Leadtools;
public void Example()
{
const int A = 128, R = 24, G = 87, B = 134;
// Create a RasterColor
RasterColor clr = new RasterColor(A, R, G, B);
// Make sure the color is correct
Assert.IsTrue(clr.A == A);
Assert.IsTrue(clr.R == R);
Assert.IsTrue(clr.G == G);
Assert.IsTrue(clr.B == B);
// Show its value
Console.WriteLine(clr);
// Show the A, R, G and B values
Console.WriteLine("Alpha value: " + clr.A);
Console.WriteLine("Red value: " + clr.R);
Console.WriteLine("Green value: " + clr.G);
Console.WriteLine("Blue value: " + clr.B);
}
Leadtools Assembly