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

Color.FromRgb Method

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

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

Syntax

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

Parameters

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. FromRgb32(Int32, Int32, Int32). If you need also supply alpha channel, you can use FromArgb(Byte, Byte, Byte, Byte) method.

See Also

Reference