alanv / tesseract-android-tools

Automatically exported from code.google.com/p/tesseract-android-tools
64 stars 18 forks source link

Add tests for Bitmap <=> Pix conversion #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 alanv@google.com on 11 Sep 2012 at 8:53

alexcohn commented 5 years ago

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.