Table of Contents

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 ColorRgba128Float

The RGBA color value.

colorContext IColorContext

The 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 SrgbColorA

The sRGB color value.

Returns

ManagedColor

The new ManagedColor instance.