tesseract-android-tools icon indicating copy to clipboard operation
tesseract-android-tools copied to clipboard

Add tests for Bitmap <=> Pix conversion

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

It looks like conversion from Pic to Bitmap (or vice versa) is not working 
correctly. This should be tested in ReadFileTest or WriteFileTest with a Bitmap 
=> Pic => Bitmap conversion.

Original issue reported on code.google.com by [email protected] on 11 Sep 2012 at 8:53

GoogleCodeExporter avatar Mar 08 '15 08:03 GoogleCodeExporter

It seems that ReadFileTest.testReadFile_bmp() is redundant. This tests is duplicate of ReadFileTest.testReadFile_png() and uses same PNG file compression.

That's quite natural because Android Bitmap class does not provide an API to save or read BMP file format. This can be done with a 3rd party library, but it does not make much sense to introduce yet another dependency for such minor task.

alexcohn avatar Jun 30 '19 21:06 alexcohn