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
valueColorRgba128FloatThe RGBA color value.
colorContextIColorContextThe 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
srgbColorSrgbColorAThe sRGB color value.
Returns
- ManagedColor
The new ManagedColor instance.