UIColor.ColorWithAlpha(nfloat) 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.
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.