Show / Hide Table of Contents

Class PixelColor

Defines color of a pixel, color can be represented as RGB, LMS, or modified based on filters.

Inheritance
System.Object
PixelColor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public class PixelColor

Constructors

View Source

PixelColor(Color)

Initializes a new instance of the PixelColor class.

Declaration
public PixelColor(Color color)
Parameters
Type Name Description
System.Drawing.Color color

a single pixel represented as ARGB.

Methods

View Source

DeuteranopiaAdjustment()

Deuteranopia pre-filter adjustment.

Declaration
public void DeuteranopiaAdjustment()
View Source

DeuteranopiaFilter()

Transform LMS to LMS effected by Deuteranopia.

Declaration
public void DeuteranopiaFilter()
View Source

FixRGB()

Fixes RGB values so they still create an image, print out error message.

Declaration
public void FixRGB()
View Source

GetBlue()

Returns blue value.

Declaration
public int GetBlue()
Returns
Type Description
System.Int32

blue value (0-255).

View Source

GetGreen()

Returns green value.

Declaration
public int GetGreen()
Returns
Type Description
System.Int32

green value (0-255).

View Source

GetRed()

Gets red value.

Declaration
public int GetRed()
Returns
Type Description
System.Int32

red value (0-255).

View Source

LMStoRGB()

Convert from LMS to RGB values.

Declaration
public void LMStoRGB()
View Source

ProtanopiaAdjustment()

Protanopia pre-filter adjustment.

Declaration
public void ProtanopiaAdjustment()
View Source

ProtanopiaFilter()

Transform LMS to LMS effected by Protanopia.

Declaration
public void ProtanopiaFilter()
View Source

RGBtoLMS()

Convert from RGB values to LMS.

Declaration
public void RGBtoLMS()
View Source

TritanopiaFilter()

Transform LMS to LMS effected by Tritanopia.

Declaration
public void TritanopiaFilter()
  • View Source
In This Article
Back to top Generated by DocFX