Use PNG for OCR

This commit is contained in:
Jaex 2016-05-16 12:28:14 +03:00
parent 4e05c6748b
commit 88022f576a

View file

@ -675,11 +675,11 @@ public static void OpenOCR()
{ {
if (img != null) if (img != null)
{ {
using (Stream stream = SaveImage(img, EImageFormat.JPEG, 95)) using (Stream stream = SaveImage(img, EImageFormat.PNG))
{ {
if (stream != null) if (stream != null)
{ {
using (OCRSpaceForm form = new OCRSpaceForm(stream, "ShareX.jpg")) using (OCRSpaceForm form = new OCRSpaceForm(stream, "ShareX.png"))
{ {
form.Language = Program.Settings.OCRLanguage; form.Language = Program.Settings.OCRLanguage;
form.ShowDialog(); form.ShowDialog();