Class TiresiasViewModel
Automatic report generation display in the ViewModel.
Inheritance
Inherited Members
Namespace: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public class TiresiasViewModel : TabItemViewModel<TiresiasView>, IViewInitialize, ITiresiasViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceTiresiasViewModel(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 SourceName
The tab header name.
Declaration
public const string Name = "Tiresias"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceApplyTextSizeCommand
Gets command to select top of text from mouse click.
Declaration
public DelegateCommand ApplyTextSizeCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
AutoReportBatchProcessingButtonCommand
Gets a folder of images as a candidate for an automatic report.
Declaration
public DelegateCommand AutoReportBatchProcessingButtonCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
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 |
AutoReportGenerateButtonCommand
Gets the command to generate a single auto report.
Declaration
public DelegateCommand AutoReportGenerateButtonCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
AutoReportScreenshotButtonCommand
Gets a screenshot as a candidate for an automatic report.
Declaration
public DelegateCommand AutoReportScreenshotButtonCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
AutoReportSingleImportButtonCommand
Gets an image as a candidate for an automatic report.
Declaration
public DelegateCommand AutoReportSingleImportButtonCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
BackgroundColorText
Gets or sets the color value string of the background color.
Declaration
public string BackgroundColorText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BackgroundRectangleLeft
Gets or sets location of contrast indicator.
Declaration
public double BackgroundRectangleLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
BackgroundRectangleLeftOutline
Gets or sets location of contrast indicator.
Declaration
public double BackgroundRectangleLeftOutline { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
BackgroundRectangleTop
Gets or sets location of contrast indicator.
Declaration
public double BackgroundRectangleTop { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
BackgroundRectangleTopOutline
Gets or sets location of contrast indicator.
Declaration
public double BackgroundRectangleTopOutline { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
BackgroundXCoordinate
Gets or sets the background x value for contrast testing.
Declaration
public double BackgroundXCoordinate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
BackgroundYCoordinate
Gets or sets the background y value for contrast testing.
Declaration
public double BackgroundYCoordinate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
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 |
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 |
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 |
ColorBrightnessCommand
Gets commands to run Color Brightness algorithm.
Declaration
public DelegateCommand ColorBrightnessCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
ColorDifferenceCommand
Gets commands to run Color Difference algorithm.
Declaration
public DelegateCommand ColorDifferenceCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ContrastZoom
Gets or sets the zoom value for the contrast tab.
Declaration
public double ContrastZoom { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
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 |
CurrentFilterName
Gets or sets the current filter to the UI.
Declaration
public string CurrentFilterName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
DeuteranopiaCommand
Gets command for deuteranopia filter on image.
Declaration
public DelegateCommand DeuteranopiaCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
ExportButtonCommand
Gets command for exporting the displayed image in UI.
Declaration
public DelegateCommand ExportButtonCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
ForegroundColor
Gets or sets the foreground color for contrast tab.
Declaration
public Color ForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
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 |
ForegroundColorText
Gets or sets the color value string of the foreground color.
Declaration
public string ForegroundColorText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ForegroundRectangleLeft
Gets or sets location of contrast indicator.
Declaration
public double ForegroundRectangleLeft { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ForegroundRectangleLeftOutline
Gets or sets location of contrast indicator.
Declaration
public double ForegroundRectangleLeftOutline { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ForegroundRectangleTop
Gets or sets location of contrast indicator.
Declaration
public double ForegroundRectangleTop { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ForegroundRectangleTopOutline
Gets or sets location of contrast indicator.
Declaration
public double ForegroundRectangleTopOutline { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ForegroundXCoordinate
Gets or sets the foreground x value for contrast testing.
Declaration
public double ForegroundXCoordinate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ForegroundYCoordinate
Gets or sets the foreground y value for contrast testing.
Declaration
public double ForegroundYCoordinate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
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 |
GlobalRefreshInterval
Gets the global refresh interval. (Necessary for screenshot functionality).
Declaration
public ScreenshotRefreshInterval GlobalRefreshInterval { get; }
Property Value
Type | Description |
---|---|
ScreenshotRefreshInterval |
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 |
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 |
ImageHeight
Gets or sets the image height variable.
Declaration
public double ImageHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ImageWidth
Gets or sets the image width variable.
Declaration
public double ImageWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ImportButtonCommand
Gets an image and display in UI.
Declaration
public DelegateCommand ImportButtonCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
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 |
LuminanceCommand
Gets commands to run Luminance algorithm.
Declaration
public DelegateCommand LuminanceCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
MonochromacyCommand
Gets command for complete colorblindness filter on image.
Declaration
public DelegateCommand MonochromacyCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
ProtanopiaCommand
Gets command for protanopia filter on image.
Declaration
public DelegateCommand ProtanopiaCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
ResetCommand
Gets command for resetting filtered image back to the original.
Declaration
public DelegateCommand ResetCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
ResultTextTextSize
Gets or sets the text displaying the text size in pixels.
Declaration
public double ResultTextTextSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
ScreenshotButtonCommand
Gets screenshot from Xbox when 'Screenshot' button is pressed, displays image on screen.
Declaration
public DelegateCommand ScreenshotButtonCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
TextSizeData
Gets or sets the text size test data.
Declaration
public TextSizeDisplay TextSizeData { get; set; }
Property Value
Type | Description |
---|---|
TextSizeDisplay |
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 |
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 |
TritanopiaCommand
Gets command for tritanopia filter on image.
Declaration
public DelegateCommand TritanopiaCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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 |
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 |
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 |
YBottomCoordinate
Gets or sets the bottom y value for text size testing.
Declaration
public double YBottomCoordinate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
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 |
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 SourceAdjustContrastMarkers(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 |
ClearContrast()
Clears markers and results.
Declaration
public void ClearContrast()
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. |
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. |
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. |
Initialize()
Handles current device to keep this.currentDevice up to date (Necessary for screenshot functionality).
Declaration
protected override void Initialize()
Overrides
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. |
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. |
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. |
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. |
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. |
SuggestedLines()
Adds lines indicating what the text size would have to be to pass.
Declaration
public void SuggestedLines()
Uninitialize()
Uninitializes phoenix managed resources when closed.
Declaration
protected override void Uninitialize()
Overrides
UpdateMarkersZoom()
Updates position of markers when image is zoomed in/ zoomed out.
Declaration
public void UpdateMarkersZoom()
UpdateMinRatio()
Updates minimum ratio depending on selected algorithm.
Declaration
public void UpdateMinRatio()
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 |