Table of Contents

Class FundamentalRegionRGB

Namespace
Gamelogic.Fx.Dithering
Assembly
Gamelogic.Fx.Dithering.dll

Three FundamentalRegion instances — one per color channel — plus a shared "all-channels" region, with a Locked flag that determines which regions are active.

[Serializable]
public sealed class FundamentalRegionRGB
Inheritance
FundamentalRegionRGB
Inherited Members

Remarks

When Locked is true (All tab selected), R, G, and B all return All, and their setters throw InvalidOperationException. This lets all three channels share one region without destroying the per-channel data stored in Gamelogic.Fx.Dithering.FundamentalRegionRGB.regionR, Gamelogic.Fx.Dithering.FundamentalRegionRGB.regionG, and Gamelogic.Fx.Dithering.FundamentalRegionRGB.regionB.

When Locked is false (R, G, or B tab selected), each getter returns its own region and each setter copies via SetFrom(FundamentalRegion).

Fields

RegionAllFieldName

public const string RegionAllFieldName = "regionAll"

Field Value

string

RegionBFieldName

public const string RegionBFieldName = "regionB"

Field Value

string

RegionGFieldName

public const string RegionGFieldName = "regionG"

Field Value

string

RegionRFieldName

public const string RegionRFieldName = "regionR"

Field Value

string

Properties

All

The shared fundamental region used for all channels when Locked is true.

public FundamentalRegion All { get; }

Property Value

FundamentalRegion

B

Gets the blue channel region, or All when Locked. The setter copies via SetFrom(FundamentalRegion) and throws when locked.

public FundamentalRegion B { get; set; }

Property Value

FundamentalRegion

G

Gets the green channel region, or All when Locked. The setter copies via SetFrom(FundamentalRegion) and throws when locked.

public FundamentalRegion G { get; set; }

Property Value

FundamentalRegion

Locked

When true, R, G, and B all return All and their setters throw. Set by the property drawer when the All tab is selected or deselected.

public bool Locked { get; set; }

Property Value

bool

R

Gets the red channel region, or All when Locked. The setter copies via SetFrom(FundamentalRegion) and throws when locked.

public FundamentalRegion R { get; set; }

Property Value

FundamentalRegion