This documentation is for the old version. Go to the latest Graphics Mill docs

Color.FromArgb Method

Returns RgbColor class instance constructed from all 4 channels (alpha, red, green, and blue).

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Shared Function FromArgb ( _
	alpha As Byte, _
	red As Byte, _
	green As Byte, _
	blue As Byte _
) As RgbColor
C#
public static RgbColor FromArgb(
	byte alpha,
	byte red,
	byte green,
	byte blue
)

Parameters

alpha

Type: System.Byte

Alpha channel value.
red

Type: System.Byte

Red channel value.
green

Type: System.Byte

Green channel value.
blue

Type: System.Byte

Blue channel value.

Return Value

RgbColor class instance constructed from given channels.

Remarks

You can also use extended version of this method, i.e. FromArgb32(Int32, Int32, Int32, Int32). If you do not care about alpha channel, you can also use FromRgb(Byte, Byte, Byte) method.

Examples

Visual Basic
Dim rgb As Aurigma.GraphicsMill.RgbColor = _
 Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0)
C#
Aurigma.GraphicsMill.RgbColor rgb = 
    Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0);

See Also

Reference