Share via


UIColor.GetRGBA(NFloat, NFloat, NFloat, NFloat) Method

Definition

Returns the red, green, blue and alpha components of this color.

public void GetRGBA(out System.Runtime.InteropServices.NFloat red, out System.Runtime.InteropServices.NFloat green, out System.Runtime.InteropServices.NFloat blue, out System.Runtime.InteropServices.NFloat alpha);
member this.GetRGBA : NFloat * NFloat * NFloat * NFloat -> unit

Parameters

red
NFloat

Red component, 0.0 to 1.0f.

green
NFloat

Green component 0.0 to 1.0f.

blue
NFloat

Blue component value 0.0 to 1.0f.

alpha
NFloat

Alpha (transparency) value from 0.0 to 1.0f.

Remarks

This can be used from a background thread.

Applies to