UIColor.FromRGBA Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromRGBA(nfloat, nfloat, nfloat, nfloat) |
Creates a color with the specified alpha transparency using the red, green and blue components specified. |
FromRGBA(Byte, Byte, Byte, Byte) |
Creates a color with the specified alpha transparency using the red, green and blue components specified. |
FromRGBA(Int32, Int32, Int32, Int32) |
Creates a color from the specified combination of red, green, and blue elements, with the specified transparency. |
FromRGBA(nfloat, nfloat, nfloat, nfloat)
Creates a color with the specified alpha transparency using the red, green and blue components specified.
[Foundation.Export("colorWithRed:green:blue:alpha:")]
public static UIKit.UIColor FromRGBA (nfloat red, nfloat green, nfloat blue, nfloat alpha);
static member FromRGBA : nfloat * nfloat * nfloat * nfloat -> UIKit.UIColor
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.
Returns
- Attributes
Remarks
This can be used from a background thread.
Applies to
FromRGBA(Byte, Byte, Byte, Byte)
Creates a color with the specified alpha transparency using the red, green and blue components specified.
public static UIKit.UIColor FromRGBA (byte red, byte green, byte blue, byte alpha);
static member FromRGBA : byte * byte * byte * byte -> UIKit.UIColor
Parameters
- red
- Byte
Red component, 0 to 255.
- green
- Byte
Green component 0 to 255.
- blue
- Byte
Blue component value 0 to 255.
- alpha
- Byte
Alpha (transparency) value 0 to 255.
Returns
Remarks
This can be used from a background thread.
Applies to
FromRGBA(Int32, Int32, Int32, Int32)
Creates a color from the specified combination of red, green, and blue elements, with the specified transparency.
public static UIKit.UIColor FromRGBA (int red, int green, int blue, int alpha);
static member FromRGBA : int * int * int * int -> UIKit.UIColor
Parameters
- red
- Int32
- green
- Int32
- blue
- Int32
- alpha
- Int32
Returns
Remarks
This can be used from a background thread.