Class FundamentalRegionRGB
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
RegionBFieldName
public const string RegionBFieldName = "regionB"
Field Value
RegionGFieldName
public const string RegionGFieldName = "regionG"
Field Value
RegionRFieldName
public const string RegionRFieldName = "regionR"
Field Value
Properties
All
The shared fundamental region used for all channels when Locked is true.
public FundamentalRegion All { get; }
Property Value
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
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
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
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; }