They may be used within the context of Microsoft applications for the Macintosh, but should not be used when communicating color changes directly to the Macintosh operating system.
The RGB color values returned by this function are incompatible with those used by the Macintosh operating system. The following table lists some standard colors and the red, green, and blue values they include: The value for any argument to RGB that exceeds 255 is assumed to be 255. An RGB color value specifies the relative intensity of red, green, and blue to cause a specific color to be displayed. Number in the range 0–255, inclusive, that represents the blue component of the color.Īpplication methods and properties that accept a color specification expect that specification to be a number representing an RGB color value. Number in the range 0–255, inclusive, that represents the green component of the color. Number in the range 0–255, inclusive, that represents the red component of the color. The RGB function syntax has these arguments: For example, Black and FromArgb (0,0,0) are not considered equal, since Black is a named color and FromArgb (0,0,0) is not. This is because the Equals and opEquality members determine equivalency using more than just the ARGB value of the colors. Returns a Long representing an RGB color value. To compare colors based solely on their ARGB values, you should use the ToArgb method.