Class TiresiasImage
Holds information necessary for auto report.
Inheritance
Inherited Members
Namespace: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public class TiresiasImage
Constructors
View SourceTiresiasImage(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 SourceDeuteranopiaApplied
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 |
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 |
Height
Gets or sets the height of the image.
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
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 |
OrigImage
Gets or sets the original image.
Declaration
public BitmapImage OrigImage { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapImage |
OrigImagePath
Gets or sets the original file path of the image.
Declaration
public string OrigImagePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
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 |
ResultOCR
Gets or sets the OCR results.
Declaration
public OcrResult ResultOCR { get; set; }
Property Value
Type | Description |
---|---|
OcrResult |
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 |
Width
Gets or sets the width of the image.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
View SourceOutlineTextInImageAndReturnPathAsync(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. |
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. |