Rgb.Make(int,int,int)

Rgb.Make Method


Builds an RGB integer triplet (#RRGGBB) from Red, Green and Blue integer components.

Definition

public static int Make( int r, int g, int b );

Parameters

rSystem.Int32. Red component between 0 and 255.
gSystem.Int32. Green component between 0 and 255.
bSystem.Int32. Blue component between 0 and 255.

Return Value

System.Int32. The resulting RGB integer triplet.

Remarks

As an example, RGB.Make(255,1,2) returns the integer 0xFF0102.
© 2004-2005 GlobFX Technologies. All rights reserved.