public OCRSpaceForm(OCROptions ocrOptions) { InitializeComponent(); ShareXResources.ApplyTheme(this); this.ocrOptions = ocrOptions; cbLanguages.Items.AddRange(Helpers.GetEnumDescriptions <OCRSpaceLanguages>()); cbLanguages.SelectedIndex = (int)ocrOptions.DefaultLanguage; Language = ocrOptions.DefaultLanguage; txtResult.SupportSelectAll(); }
public OCRSpaceForm(Stream data, string fileName, OCROptions ocrOptions) : this(ocrOptions) { this.data = data; this.fileName = fileName; }