Table of Contents

Class ManagedColor

Namespace
PaintDotNet.Imaging
Assembly
PaintDotNet.Core.dll

Encapsulates an RGBA color value and the color space that it is defined within, along with methods for retrieving the color while transforming it to a target color space. This removes color space ambiguity for color values, enabling them to maintain the correct visual color when moving through a larger system.

public abstract class ManagedColor : IEquatable<ManagedColor>
Inheritance
ManagedColor
Implements
Inherited Members
Extension Methods

Properties

ColorContext

Gets the color context for the color, which specifies the color space that the color is defined within.

Methods

Create(ColorRgba128Float, IColorContext)

Creates an instance of ManagedColor with a specific color value and color context.

Create(SrgbColorA)

Creates an instance of ManagedColor with a specific sRGB color.

Equals(ManagedColor?)

Compares two ManagedColors for equality. ManagedColor instances are considered to be equal if they have the same raw color value and are using the same IColorContext.

Equals(object?)

Compares two ManagedColors for equality. ManagedColor instances are considered to be equal if they have the same raw color value and are using the same IColorContext.

Get(IColorContext)

Retrieves the color in the requested color space.

GetHashCode()

Operators

operator ==(ManagedColor?, ManagedColor?)

Compares two ManagedColors for equality. ManagedColor instances are considered to be equal if they have the same raw color value and are using the same IColorContext.

operator !=(ManagedColor?, ManagedColor?)

Compares two ManagedColors for equality. ManagedColor instances are considered to be equal if they have the same raw color value and are using the same IColorContext.