public sealed class RgbCube : AbstractColourCube
Implementation of ColourCube for the sRGB model.

Constructors

RgbCube

#
public RgbCube(Colour colour)
Create a new RGB cube centered on a specific colour.
colour (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

#
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

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

Draw

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

GetChannels

#
public override void GetChannels(out UiNumber channel1, out UiNumber channel2, out UiNumber channel3)
channel1 (out UiNumber)
channel2 (out UiNumber)
channel3 (out UiNumber)

GetTexture

#
protected override IMultiResolutionTexture GetTexture()

SetChannels

#
public override void SetChannels(UiNumber channel1, UiNumber channel2, UiNumber channel3)
channel1 (UiNumber)
channel2 (UiNumber)
channel3 (UiNumber)

SetColour

public void SetColour(Colour colour)
inherited fromAbstractColourCube
colour (Colour)
SetColour

ToColour

#
protected override Colour ToColour(Point4d point)
point (Point4d)

ToPoint

#
protected override Point4d ToPoint(Colour colour)
colour (Colour)