ABBYY Mobile Imaging SDK 1.0

Go to: Contents | Programmer's Guide | How To ...?

Working with Image in the Android Library

ABBYY Mobile Imaging SDK for Android has the MIImage object that represents an input image. The MIHelper class converts image data from the ARGB8888 format into the MIImage object, and vice versa. Before applying ABBYY Mobile Imaging SDK functions to an image, it should be converted into MIImage object. After the image improvements, it should be converted back from MIImage object into ARGB8888 format.

Reading an Image

Small images (less than 80Kb) can be read with the help of the readFromBuffer function of the MIHelper class. Big images should be read by portions. To do that:

Writing an Image

After the image improvements, the image should be converted from MIImage object into ARGB8888 format. Small images (less than 80Kb) can be written with the help of the writeToBuffer function of the MIHelper class. Big images should be written by portions. To do that: