UIColor.ColorWithAlpha(nfloat) Method

Definition

Creates a new color with the specified alpha channel from a reference color.

[Foundation.Export("colorWithAlphaComponent:")]
public virtual UIKit.UIColor ColorWithAlpha (nfloat alpha);
abstract member ColorWithAlpha : nfloat -> UIKit.UIColor
override this.ColorWithAlpha : nfloat -> UIKit.UIColor

Parameters

alpha
nfloat

Alpha (transparency) value from 0.0 to 1.0f.

Returns

A copy of the color, but with a new alpha component value.

Attributes

Remarks

This can be used from a background thread.

Applies to