Image::rgb Method

Converts an RGB value to an ARGB value.

Syntax

client public static int rgb(
    int R, 
    int G, 
    int B)

Run On

Client

Parameters

  • R
    Type: int
    The red value of the color.
  • G
    Type: int
    The green value of the color.
  • B
    Type: int
    The blue value of the color.

Return Value

Type: int
An integer that represents the ARGB value of the color that is specified by the parameters.

See Also

Image Class

Image.getPixel Method