public sealed class LabCube : AbstractColourCube
Implementation of ColourCube for the CIE L*a*b* model.

Constructors

LabCube

#
Create a new LAB cube centered on a specific colour.
public LabCube(
colour
)

Properties

Colour

public Colour Colour { get; }
inherited fromAbstractColourCube
Colour

Coordinate

public Point4d Coordinate { get; }
inherited fromAbstractColourCube

Filter

#
public override NamedPalette Filter { get; set; }

Format

#
Format the current model.
public override string Format { get; }

Icon

#
public override IIcon Icon { get; }

Nomen

public Nomen Nomen { get; }
inherited fromAbstractColourCube
Nomen

Pivot

public PointF Pivot { get; }
inherited fromAbstractColourCube

Slice

public RectangleF Slice { get; }
inherited fromAbstractColourCube

Zoom

public float Zoom { get; }
inherited fromAbstractColourCube

Methods

AssignCubeState

Most-derived type constructor invoke.
protected void AssignCubeState(
point,
New point.
colour
New colour.
)
inherited fromAbstractColourCube
Must return new instance of the derived type.

Draw

Render this cube into a graphics context.
public void Draw(
context,
Graphics context.
RectangleF
bounds,
Target bounds. The height of the bounds is assumed to be the same as the width.
visuals
Drawing properties.
)
inherited fromAbstractColourCube
Draw

GetChannels

#
Gets the channel values of the current space.
public override void GetChannels(
channel1,
Properties of first channel.
channel2,
Properties of second channel.
channel3
Properties of third channel.
)

GetTexture

#
Gets the texture for the current projection.
protected override IMultiResolutionTexture GetTexture()

SetChannels

#
Sets the three channel values.
public override void SetChannels(
channel1,
First channel.
channel2,
Second channel.
channel3
Third channel.
)
True if new channels were successfully applied, false if some rounding/clipping was required.

SetColour

public void SetColour(
colour
)
inherited fromAbstractColourCube
SetColour

ToColour

#
Convert from cube coordinate to colour.
protected override Colour ToColour(
point
)

ToPoint

#
Convert from colour to cube coordinate.
protected override Point4d ToPoint(
colour
)