Show / Hide Table of Contents

Class TiresiasViewModel

Automatic report generation display in the ViewModel.

Inheritance
System.Object
ViewModelBase<TiresiasView>
TabItemViewModel<TiresiasView>
TiresiasViewModel
Implements
IViewInitialize
ITiresiasViewProvider
IViewProvider
IClosingNotification
Inherited Members
TabItemViewModel<TiresiasView>.FocusView()
TabItemViewModel<TiresiasView>.OnViewChanged(Object, DependencyPropertyChangedEventArgs)
TabItemViewModel<TiresiasView>.LogOnlyIfTabActive(String, String, Object[])
TabItemViewModel<TiresiasView>.LogOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<TiresiasView>.LogOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<TiresiasView>.LogOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<TiresiasView>.LoglineOnlyIfTabActive(String, String, Object[])
TabItemViewModel<TiresiasView>.LoglineOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<TiresiasView>.LoglineOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<TiresiasView>.LoglineOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<TiresiasView>.LogExceptionOnlyIfTabActive(String, LogSeverity, Exception)
TabItemViewModel<TiresiasView>.LogCriticalExceptionOnlyIfTabActive(String, Exception)
ViewModelBase<TiresiasView>.Closed
ViewModelBase<TiresiasView>.IsClosable
ViewModelBase<TiresiasView>.IsDockable
ViewModelBase<TiresiasView>.HeaderName
ViewModelBase<TiresiasView>.View
ViewModelBase<TiresiasView>.IViewProvider.View
ViewModelBase<TiresiasView>.EventAggregator
ViewModelBase<TiresiasView>.Logger
ViewModelBase<TiresiasView>.Closing(CancelEventArgs)
ViewModelBase<TiresiasView>.IViewInitialize.Initialize()
ViewModelBase<TiresiasView>.IViewInitialize.Uninitialize()
ViewModelBase<TiresiasView>.IClosingNotification.Closed(EventArgs)
ViewModelBase<TiresiasView>.OnClosing(CancelEventArgs)
ViewModelBase<TiresiasView>.OnClosed()
ViewModelBase<TiresiasView>.CloseView()
Namespace: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public class TiresiasViewModel : TabItemViewModel<TiresiasView>, IViewInitialize, ITiresiasViewProvider, IViewProvider, IClosingNotification

Constructors

View Source

TiresiasViewModel(TiresiasView, IWindowingControl, IEventAggregator, IPhoenixLogger, IDeviceManager, ISettingsManager)

Initializes a new instance of the TiresiasViewModel class.

Declaration
public TiresiasViewModel(TiresiasView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger, IDeviceManager deviceManager, ISettingsManager settingsManager)
Parameters
Type Name Description
TiresiasView view

The image view.

IWindowingControl windowing
IEventAggregator eventAggregator

The event aggregator.

IPhoenixLogger logger

The logger.

IDeviceManager deviceManager

The device manager.

ISettingsManager settingsManager

Fields

View Source

Name

The tab header name.

Declaration
public const string Name = "Tiresias"
Field Value
Type Description
System.String

Properties

View Source

ApplyTextSizeCommand

Gets command to select top of text from mouse click.

Declaration
public DelegateCommand ApplyTextSizeCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

AutoReportBatchProcessingButtonCommand

Gets a folder of images as a candidate for an automatic report.

Declaration
public DelegateCommand AutoReportBatchProcessingButtonCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

AutoReportExportDeuteranopia

Gets or sets a value indicating whether the user has chosen to export deuteranopia filtered images.

Declaration
public bool AutoReportExportDeuteranopia { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportExportMonochromacy

Gets or sets a value indicating whether the user has chosen to export monochromacy filtered images.

Declaration
public bool AutoReportExportMonochromacy { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportExportProtanopia

Gets or sets a value indicating whether the user has chosen to export protanopia filtered images.

Declaration
public bool AutoReportExportProtanopia { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportExportTritanopia

Gets or sets a value indicating whether the user has chosen to export tritanopia filtered images.

Declaration
public bool AutoReportExportTritanopia { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportGenerateButtonCommand

Gets the command to generate a single auto report.

Declaration
public DelegateCommand AutoReportGenerateButtonCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

AutoReportIncludeCharacterCountInReport

Gets or sets a value indicating whether the user has included character count tests in the report.

Declaration
public bool AutoReportIncludeCharacterCountInReport { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIncludeColorblindContrastTestsInReport

Gets or sets a value indicating whether the user has chosen to include the colorblind variants of the contrast tests.

Declaration
public bool AutoReportIncludeColorblindContrastTestsInReport { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIncludeColorblindnessInReport

Gets or sets a value indicating whether the user has included the colorblind images in the report.

Declaration
public bool AutoReportIncludeColorblindnessInReport { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIncludeColorBrightnessInReport

Gets or sets a value indicating whether the user has included the color brightness test in the report.

Declaration
public bool AutoReportIncludeColorBrightnessInReport { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIncludeColorDiffInReport

Gets or sets a value indicating whether the user has included the color difference test in the report.

Declaration
public bool AutoReportIncludeColorDiffInReport { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIncludeLuminanceInReport

Gets or sets a value indicating whether the user has included the luminance test in the report.

Declaration
public bool AutoReportIncludeLuminanceInReport { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIncludeTextSizeInReport

Gets or sets a value indicating whether the user has included text size tests in the report.

Declaration
public bool AutoReportIncludeTextSizeInReport { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIsFullFormat

Gets or sets a value indicating whether the auto report format is full.

Declaration
public bool AutoReportIsFullFormat { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportIsSimpleFormat

Gets or sets a value indicating whether the auto report format is simplified.

Declaration
public bool AutoReportIsSimpleFormat { get; set; }
Property Value
Type Description
System.Boolean
View Source

AutoReportOcrThreshold

Gets or sets the text showing the user the OCR algorithm threshold for pixel pair discarding.

Declaration
public double AutoReportOcrThreshold { get; set; }
Property Value
Type Description
System.Double
View Source

AutoReportScreenshotButtonCommand

Gets a screenshot as a candidate for an automatic report.

Declaration
public DelegateCommand AutoReportScreenshotButtonCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

AutoReportSingleImportButtonCommand

Gets an image as a candidate for an automatic report.

Declaration
public DelegateCommand AutoReportSingleImportButtonCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

BackgroundColor

Gets or sets the color of the background for contrast tab.

Declaration
public Color BackgroundColor { get; set; }
Property Value
Type Description
System.Drawing.Color
View Source

BackgroundColorDisplay

Gets or sets the color block that displays the selected background color in the Contrast tab.

Declaration
public BitmapImage BackgroundColorDisplay { get; set; }
Property Value
Type Description
System.Windows.Media.Imaging.BitmapImage
View Source

BackgroundColorText

Gets or sets the color value string of the background color.

Declaration
public string BackgroundColorText { get; set; }
Property Value
Type Description
System.String
View Source

BackgroundRectangleLeft

Gets or sets location of contrast indicator.

Declaration
public double BackgroundRectangleLeft { get; set; }
Property Value
Type Description
System.Double
View Source

BackgroundRectangleLeftOutline

Gets or sets location of contrast indicator.

Declaration
public double BackgroundRectangleLeftOutline { get; set; }
Property Value
Type Description
System.Double
View Source

BackgroundRectangleTop

Gets or sets location of contrast indicator.

Declaration
public double BackgroundRectangleTop { get; set; }
Property Value
Type Description
System.Double
View Source

BackgroundRectangleTopOutline

Gets or sets location of contrast indicator.

Declaration
public double BackgroundRectangleTopOutline { get; set; }
Property Value
Type Description
System.Double
View Source

BackgroundXCoordinate

Gets or sets the background x value for contrast testing.

Declaration
public double BackgroundXCoordinate { get; set; }
Property Value
Type Description
System.Double
View Source

BackgroundYCoordinate

Gets or sets the background y value for contrast testing.

Declaration
public double BackgroundYCoordinate { get; set; }
Property Value
Type Description
System.Double
View Source

CharacterCountLimitPerLine

Gets or sets how many non-space characters can be in a line before failing the character count.

Declaration
public int CharacterCountLimitPerLine { get; set; }
Property Value
Type Description
System.Int32
View Source

ColorblindImagesEnabledAutoReportTab

Gets or sets a value indicating whether the colorblind images sections in the auto report tab should be enabled.

Declaration
public bool ColorblindImagesEnabledAutoReportTab { get; set; }
Property Value
Type Description
System.Boolean
View Source

ColorBrightnessButtonClicked

Gets or sets a value indicating whether the color brightness button in the contrast tab is clicked.

Declaration
public bool ColorBrightnessButtonClicked { get; set; }
Property Value
Type Description
System.Boolean
View Source

ColorBrightnessCommand

Gets commands to run Color Brightness algorithm.

Declaration
public DelegateCommand ColorBrightnessCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ColorDifferenceButtonClicked

Gets or sets a value indicating whether the color difference button in the contrast tab is clicked.

Declaration
public bool ColorDifferenceButtonClicked { get; set; }
Property Value
Type Description
System.Boolean
View Source

ColorDifferenceCommand

Gets commands to run Color Difference algorithm.

Declaration
public DelegateCommand ColorDifferenceCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ContrastZoom

Gets or sets the zoom value for the contrast tab.

Declaration
public double ContrastZoom { get; set; }
Property Value
Type Description
System.Double
View Source

CurrentDevice

Gets current device to keep this.currentDevice up to date (Necessary for screenshot functionality).

Declaration
public IDevice CurrentDevice { get; }
Property Value
Type Description
IDevice
View Source

CurrentFilterName

Gets or sets the current filter to the UI.

Declaration
public string CurrentFilterName { get; set; }
Property Value
Type Description
System.String
View Source

DeuteranopiaButtonClicked

Gets or sets a value indicating whether the deuteranopia button in the colorblindness tab is clicked.

Declaration
public bool DeuteranopiaButtonClicked { get; set; }
Property Value
Type Description
System.Boolean
View Source

DeuteranopiaCommand

Gets command for deuteranopia filter on image.

Declaration
public DelegateCommand DeuteranopiaCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

DeutLargeText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a deuteranopia filter applied.

Declaration
public ContrastDisplay DeutLargeText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

DeutNonText

Gets or sets the calculated ratio, minimum ratio, and result for non text XAG standards with a deuteranopia filter applied.

Declaration
public ContrastDisplay DeutNonText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

DeutText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a deuteranopia filter applied.

Declaration
public ContrastDisplay DeutText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

ExportButtonCommand

Gets command for exporting the displayed image in UI.

Declaration
public DelegateCommand ExportButtonCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

FailuresAndOCREnabledAutoReportTab

Gets or sets a value indicating whether the failure and OCR sections in the auto report tab should be enabled.

Declaration
public bool FailuresAndOCREnabledAutoReportTab { get; set; }
Property Value
Type Description
System.Boolean
View Source

FileOrFolderPath

Gets or sets the text showing the user the path of the file or folder they've imported.

Declaration
public string FileOrFolderPath { get; set; }
Property Value
Type Description
System.String
View Source

FilteredImage

Gets or sets the filtered image that is displayed the colorblindness tab.

Declaration
public BitmapImage FilteredImage { get; set; }
Property Value
Type Description
System.Windows.Media.Imaging.BitmapImage
View Source

ForegroundColor

Gets or sets the foreground color for contrast tab.

Declaration
public Color ForegroundColor { get; set; }
Property Value
Type Description
System.Drawing.Color
View Source

ForegroundColorDisplay

Gets or sets the color block that displays the selected foreground color in the Contrast tab.

Declaration
public BitmapImage ForegroundColorDisplay { get; set; }
Property Value
Type Description
System.Windows.Media.Imaging.BitmapImage
View Source

ForegroundColorText

Gets or sets the color value string of the foreground color.

Declaration
public string ForegroundColorText { get; set; }
Property Value
Type Description
System.String
View Source

ForegroundRectangleLeft

Gets or sets location of contrast indicator.

Declaration
public double ForegroundRectangleLeft { get; set; }
Property Value
Type Description
System.Double
View Source

ForegroundRectangleLeftOutline

Gets or sets location of contrast indicator.

Declaration
public double ForegroundRectangleLeftOutline { get; set; }
Property Value
Type Description
System.Double
View Source

ForegroundRectangleTop

Gets or sets location of contrast indicator.

Declaration
public double ForegroundRectangleTop { get; set; }
Property Value
Type Description
System.Double
View Source

ForegroundRectangleTopOutline

Gets or sets location of contrast indicator.

Declaration
public double ForegroundRectangleTopOutline { get; set; }
Property Value
Type Description
System.Double
View Source

ForegroundXCoordinate

Gets or sets the foreground x value for contrast testing.

Declaration
public double ForegroundXCoordinate { get; set; }
Property Value
Type Description
System.Double
View Source

ForegroundYCoordinate

Gets or sets the foreground y value for contrast testing.

Declaration
public double ForegroundYCoordinate { get; set; }
Property Value
Type Description
System.Double
View Source

GenerateReportEnabledAutoReportTab

Gets or sets a value indicating whether the generate report button in the auto report tab should be enabled.

Declaration
public bool GenerateReportEnabledAutoReportTab { get; set; }
Property Value
Type Description
System.Boolean
View Source

GlobalRefreshInterval

Gets the global refresh interval. (Necessary for screenshot functionality).

Declaration
public ScreenshotRefreshInterval GlobalRefreshInterval { get; }
Property Value
Type Description
ScreenshotRefreshInterval
View Source

ImageFromConsole

Gets or sets a value indicating whether the current image is from an Xbox.

Declaration
public bool ImageFromConsole { get; set; }
Property Value
Type Description
System.Boolean
View Source

ImageFromPC

Gets or sets a value indicating whether the current image is from a PC.

Declaration
public bool ImageFromPC { get; set; }
Property Value
Type Description
System.Boolean
View Source

ImageHeight

Gets or sets the image height variable.

Declaration
public double ImageHeight { get; set; }
Property Value
Type Description
System.Double
View Source

ImageWidth

Gets or sets the image width variable.

Declaration
public double ImageWidth { get; set; }
Property Value
Type Description
System.Double
View Source

ImportButtonCommand

Gets an image and display in UI.

Declaration
public DelegateCommand ImportButtonCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ImportImagesFieldEnabledAutoReportTab

Gets or sets a value indicating whether the import images sections in the auto report tab should be enabled.

Declaration
public bool ImportImagesFieldEnabledAutoReportTab { get; set; }
Property Value
Type Description
System.Boolean
View Source

LargeTextHighContrast

Gets or sets the calculated ratio, minimum ratio, and result for LARGE text XAG standards.

Declaration
public ContrastDisplay LargeTextHighContrast { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

LargeTextTargetContrast

Gets or sets the calculated ratio, minimum ratio, and result for LARGE text XAG standards.

Declaration
public ContrastDisplay LargeTextTargetContrast { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

LuminanceButtonClicked

Gets or sets a value indicating whether the luminance button in the contrast tab is clicked.

Declaration
public bool LuminanceButtonClicked { get; set; }
Property Value
Type Description
System.Boolean
View Source

LuminanceCommand

Gets commands to run Luminance algorithm.

Declaration
public DelegateCommand LuminanceCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

MonochromacyButtonClicked

Gets or sets a value indicating whether the monochromacy button in the colorblindness tab is clicked.

Declaration
public bool MonochromacyButtonClicked { get; set; }
Property Value
Type Description
System.Boolean
View Source

MonochromacyCommand

Gets command for complete colorblindness filter on image.

Declaration
public DelegateCommand MonochromacyCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

MonoLargeText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a monochromacy filter applied.

Declaration
public ContrastDisplay MonoLargeText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

MonoNonText

Gets or sets the calculated ratio, minimum ratio, and result for non text XAG standards with a monochromacy filter applied.

Declaration
public ContrastDisplay MonoNonText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

MonoText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a monochromacy filter applied.

Declaration
public ContrastDisplay MonoText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

NonTextTarget

Gets or sets the calculated ratio, minimum ratio, and result for non text XAG standards.

Declaration
public ContrastDisplay NonTextTarget { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

OriginalImage

Gets or sets the unfiltered image that is displayed the colorblindness and contrast tabs.

Declaration
public BitmapImage OriginalImage { get; set; }
Property Value
Type Description
System.Windows.Media.Imaging.BitmapImage
View Source

PathMessage

Gets or sets the text showing the user a message for the imported path they've selected.

Declaration
public string PathMessage { get; set; }
Property Value
Type Description
System.String
View Source

PhotoPath

Gets or sets the location of the image file to the UI.

Declaration
public string PhotoPath { get; set; }
Property Value
Type Description
System.String
View Source

ProtanopiaButtonClicked

Gets or sets a value indicating whether the protanopia button in the colorblindness tab is clicked.

Declaration
public bool ProtanopiaButtonClicked { get; set; }
Property Value
Type Description
System.Boolean
View Source

ProtanopiaCommand

Gets command for protanopia filter on image.

Declaration
public DelegateCommand ProtanopiaCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ProtLargeText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a protanopia filter applied.

Declaration
public ContrastDisplay ProtLargeText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

ProtNonText

Gets or sets the calculated ratio, minimum ratio, and result for non text XAG standards with a protanopia filter applied.

Declaration
public ContrastDisplay ProtNonText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

ProtText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a protanopia filter applied.

Declaration
public ContrastDisplay ProtText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

ResetCommand

Gets command for resetting filtered image back to the original.

Declaration
public DelegateCommand ResetCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ResetSelectionsEnabledAutoReportTab

Gets or sets a value indicating whether the reset all selections in the auto report tab should be enabled.

Declaration
public bool ResetSelectionsEnabledAutoReportTab { get; set; }
Property Value
Type Description
System.Boolean
View Source

ResultSymbolTextSize

Gets or sets the symbol that represents a pass or fail (check or x) for text size.

Declaration
public string ResultSymbolTextSize { get; set; }
Property Value
Type Description
System.String
View Source

ResultTextTextSize

Gets or sets the text displaying the text size in pixels.

Declaration
public double ResultTextTextSize { get; set; }
Property Value
Type Description
System.Double
View Source

ScreenshotButtonCommand

Gets screenshot from Xbox when 'Screenshot' button is pressed, displays image on screen.

Declaration
public DelegateCommand ScreenshotButtonCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

ShowFilterProgressPopup

Gets or sets a value indicating whether progress popup for filter application should be shown.

Declaration
public bool ShowFilterProgressPopup { get; set; }
Property Value
Type Description
System.Boolean
View Source

ShowPathMessage

Gets or sets a value indicating whether to show the message telling the location of the folder for batch processing.

Declaration
public bool ShowPathMessage { get; set; }
Property Value
Type Description
System.Boolean
View Source

ShowProgressPopup

Gets or sets a value indicating whether progress popup should be shown.

Declaration
public bool ShowProgressPopup { get; set; }
Property Value
Type Description
System.Boolean
View Source

ShowReportProgressPopup

Gets or sets a value indicating whether report progress pop-up should be shown.

Declaration
public bool ShowReportProgressPopup { get; set; }
Property Value
Type Description
System.Boolean
View Source

ShowTopAndBottomSwitchedMessage

Gets or sets a value indicating whether the message telling the user the top and bottom lines have been switched should be shown.

Declaration
public bool ShowTopAndBottomSwitchedMessage { get; set; }
Property Value
Type Description
System.Boolean
View Source

TextHighContrast

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards.

Declaration
public ContrastDisplay TextHighContrast { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

TextSizeAndContrastEnabledAutoReportTab

Gets or sets a value indicating whether the text size and contrast sections in the auto report tab should be enabled.

Declaration
public bool TextSizeAndContrastEnabledAutoReportTab { get; set; }
Property Value
Type Description
System.Boolean
View Source

TextSizeData

Gets or sets the text size test data.

Declaration
public TextSizeDisplay TextSizeData { get; set; }
Property Value
Type Description
TextSizeDisplay
View Source

TextTargetContrast

Gets or sets the calculated ratio, minimum ratio, and result for text XAG high contrast standards.

Declaration
public ContrastDisplay TextTargetContrast { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

TritanopiaButtonClicked

Gets or sets a value indicating whether the Tritanopia button in the colorblindness tab is clicked.

Declaration
public bool TritanopiaButtonClicked { get; set; }
Property Value
Type Description
System.Boolean
View Source

TritanopiaCommand

Gets command for tritanopia filter on image.

Declaration
public DelegateCommand TritanopiaCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

TritLargeText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a tritanopia filter applied.

Declaration
public ContrastDisplay TritLargeText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

TritNonText

Gets or sets the calculated ratio, minimum ratio, and result for non text XAG standards with a tritanopia filter applied.

Declaration
public ContrastDisplay TritNonText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

TritText

Gets or sets the calculated ratio, minimum ratio, and result for text XAG standards with a tritanopia filter applied.

Declaration
public ContrastDisplay TritText { get; set; }
Property Value
Type Description
ContrastDisplay
View Source

YBottomCoordinate

Gets or sets the bottom y value for text size testing.

Declaration
public double YBottomCoordinate { get; set; }
Property Value
Type Description
System.Double
View Source

YSuggestedCoordinate

Gets or sets the suggested value where the top coordinate should be during text size testing.

Declaration
public double YSuggestedCoordinate { get; set; }
Property Value
Type Description
System.Double
View Source

YTopCoordinate

Gets or sets the top y value for text size testing.

Declaration
public double YTopCoordinate { get; set; }
Property Value
Type Description
System.Double

Methods

View Source

AdjustContrastMarkers(Size)

Adjusts where the calculated foreground and background markers are displayed to properly track as the image is scaled.

Declaration
public void AdjustContrastMarkers(Size newSize)
Parameters
Type Name Description
System.Windows.Size newSize

The new size of the image

View Source

ClearContrast()

Clears markers and results.

Declaration
public void ClearContrast()
View Source

CreateDuplicateImageFiles(Bitmap, Int32, String)

Avoids overriding existing image files.

Declaration
public static string CreateDuplicateImageFiles(Bitmap temp, int attemptNumber, string goalFilePath)
Parameters
Type Name Description
System.Drawing.Bitmap temp

The bitmap to be saved.

System.Int32 attemptNumber

How many attempts you've made.

System.String goalFilePath

The goal file path.

Returns
Type Description
System.String

A string with the actual file path where the image has been stored.

View Source

GetPixelColorAtLocation(Double, Double)

Retrieves information of coordinates from image and returns pixel color at that location.

Declaration
public Color? GetPixelColorAtLocation(double x, double y)
Parameters
Type Name Description
System.Double x

taken from xaml code behind as clicked x-coordinate.

System.Double y

taken from xaml code behind as clicked y-coordinate.

Returns
Type Description
System.Nullable<System.Drawing.Color>

Color of the pixel at the x,y location in the image.

View Source

GetTextSizeAtLocation(Double, Double)

Gets text size at given location.

Declaration
public double GetTextSizeAtLocation(double x, double y)
Parameters
Type Name Description
System.Double x

taken from xaml code behind as clicked x-coordinate.

System.Double y

taken from xaml code behind as clicked y-coordinate.

Returns
Type Description
System.Double

Gets height of text at the one location.

View Source

Initialize()

Handles current device to keep this.currentDevice up to date (Necessary for screenshot functionality).

Declaration
protected override void Initialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Tiresias.TiresiasView>.Initialize()
View Source

SetCoordinates(Double, Double)

Sets coordinates of foreground or background in contrast.

Declaration
public void SetCoordinates(double x, double y)
Parameters
Type Name Description
System.Double x

x coordinate of selected pixel.

System.Double y

y coordinate of selected pixel.

View Source

ShowBottomTextLines(Double, Double, Double)

Reveals line where image was clicked for bottom text.

Declaration
public void ShowBottomTextLines(double y, double imgDisplayHeight, double lineThickness)
Parameters
Type Name Description
System.Double y

location of click for text line.

System.Double imgDisplayHeight

height of image in display.

System.Double lineThickness

thickness of indicator line.

View Source

ShowContrastBackgroundMarker(Double, Double, Double)

Shows marker on contrast tab of where color was selected from.

Declaration
public void ShowContrastBackgroundMarker(double imgDisplayWidth, double imgDisplayHeight, double markerBorderThickness)
Parameters
Type Name Description
System.Double imgDisplayWidth

width of image displayed on screen.

System.Double imgDisplayHeight

height of image displayed on screen.

System.Double markerBorderThickness

thickness of border of marker.

View Source

ShowContrastForegroundMarker(Double, Double, Double)

Shows marker on contrast tab of where color was selected from.

Declaration
public void ShowContrastForegroundMarker(double imgDisplayWidth, double imgDisplayHeight, double markerBorderThickness)
Parameters
Type Name Description
System.Double imgDisplayWidth

width of image displayed on screen.

System.Double imgDisplayHeight

height of image displayed on screen.

System.Double markerBorderThickness

thickness of border of marker.

View Source

ShowTopTextLines(Double, Double, Double)

Reveals line where image was clicked for top text.

Declaration
public void ShowTopTextLines(double y, double imgDisplayHeight, double lineThickness)
Parameters
Type Name Description
System.Double y

location of click for text line.

System.Double imgDisplayHeight

height of image in display.

System.Double lineThickness

thickness of indicator line.

View Source

SuggestedLines()

Adds lines indicating what the text size would have to be to pass.

Declaration
public void SuggestedLines()
View Source

Uninitialize()

Uninitializes phoenix managed resources when closed.

Declaration
protected override void Uninitialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Tiresias.TiresiasView>.Uninitialize()
View Source

UpdateMarkersZoom()

Updates position of markers when image is zoomed in/ zoomed out.

Declaration
public void UpdateMarkersZoom()
View Source

UpdateMinRatio()

Updates minimum ratio depending on selected algorithm.

Declaration
public void UpdateMinRatio()
View Source

UpdateTextSizeLineHeights(Double)

Adjusts where the calculated lines are displayed to properly track as the image is scaled.

Declaration
public void UpdateTextSizeLineHeights(double newImageHeight)
Parameters
Type Name Description
System.Double newImageHeight

The new height of the image

Implements

IViewInitialize
ITiresiasViewProvider
IViewProvider
IClosingNotification
  • View Source
In This Article
Back to top Generated by DocFX