Show / Hide Table of Contents

Class TiresiasImage

Holds information necessary for auto report.

Inheritance
System.Object
TiresiasImage
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 TiresiasImage

Constructors

View Source

TiresiasImage(String, BitmapImage, Bitmap)

Initializes a new instance of the TiresiasImage class.

Declaration
public TiresiasImage(string imagePath, BitmapImage image, Bitmap filtBitmap)
Parameters
Type Name Description
System.String imagePath

The file path of the image.

System.Windows.Media.Imaging.BitmapImage image

The image itself.

System.Drawing.Bitmap filtBitmap

A bitmap for filtering purposes.

Properties

View Source

DeuteranopiaApplied

Gets or sets a value indicating whether the deuteranopia filter has been applied.

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

FilteredBitmap

Gets or sets the bitmap version of the image (to be used for filtering purposes).

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

Height

Gets or sets the height of the image.

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

MonochromacyApplied

Gets or sets a value indicating whether the monochromacy filter has been applied.

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

OrigImage

Gets or sets the original image.

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

OrigImagePath

Gets or sets the original file path of the image.

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

OutlineTextTransformImageFilePath

Gets or sets the file path of the image with outlined text.

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

ProtanopiaApplied

Gets or sets a value indicating whether the protanopia filter has been applied.

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

ResultOCR

Gets or sets the OCR results.

Declaration
public OcrResult ResultOCR { get; set; }
Property Value
Type Description
OcrResult
View Source

TritanopiaApplied

Gets or sets a value indicating whether the tritanopia filter has been applied.

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

Width

Gets or sets the width of the image.

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

Methods

View Source

OutlineTextInImageAndReturnPathAsync(String, Boolean)

Draw boxes around the text of an image.

Declaration
public async Task<string> OutlineTextInImageAndReturnPathAsync(string providedDirectory, bool userProvidedADirectory)
Parameters
Type Name Description
System.String providedDirectory

A file path for the directory the user provided.

System.Boolean userProvidedADirectory

A boolean indicating whether the user provided a directory.

Returns
Type Description
System.Threading.Tasks.Task<System.String>

Task with filename of image with outlined text.

View Source

UpdateFilters(Boolean, Boolean, Boolean, Boolean)

Updates the status of the filters tab so the highlighted button matches the current applied filter.

Declaration
public void UpdateFilters(bool mono = false, bool prot = false, bool deut = false, bool trit = false)
Parameters
Type Name Description
System.Boolean mono

determines if the monochromacy button is highlighted or not.

System.Boolean prot

determines if the protanopia button is highlighted or not.

System.Boolean deut

determines if the deuteranopia button is highlighted or not.

System.Boolean trit

determines if the tritanopia button is highlighted or not.

  • View Source
In This Article
Back to top Generated by DocFX