ColorFFromArgb Method
Creates a
ColorF instance from the specified
ColorF structure, but with the new specified alpha value.
This method does not validate if the color components are between 0 and 1, but you can use the
IsValid property
or the
Clip method on the result.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static ColorF FromArgb(
float a,
ColorF baseColor
)
Public Shared Function FromArgb (
a As Single,
baseColor As ColorF
) As ColorF
public:
static ColorF FromArgb(
float a,
ColorF baseColor
)
static member FromArgb :
a : float32 *
baseColor : ColorF -> ColorF
- a Single
- The alpha value for the new ColorF instance.
- baseColor ColorF
- The ColorF instance from which to create the new one.
ColorFA
ColorF instance from the specified
ColorF structure and alpha value.