Method Create
- Namespace
- PaintDotNet.Imaging
- Assembly
- PaintDotNet.Core.dll
Create(ColorRgba128Float, IColorContext)
Creates an instance of ManagedColor with a specific color value and color context.
public static ManagedColor Create(ColorRgba128Float value, IColorContext colorContext)
Parameters
value
ColorRgba128FloatThe RGBA color value.
colorContext
IColorContextThe color context that specifies the color spaces that the color value is defined within.
Returns
- ManagedColor
The new ManagedColor instance.
Create(SrgbColorA)
Creates an instance of ManagedColor with a specific sRGB color.
public static ManagedColor Create(SrgbColorA srgbColor)
Parameters
srgbColor
SrgbColorAThe sRGB color value.
Returns
- ManagedColor
The new ManagedColor instance.