Press on the image to return to the main documentation page.
Jpeg
Written by Andrew Graham
This library contains a Jpeg object that can extract portions of large jpeg files without having to decode the entire picture into a bitmap. This enables parts of those pictures that would be impossible to load in their entirety to be displayed at full resolution.
This process can be slow because versions of Android before 2.2 interpreted the bytecodes of their programs at runtime. Versions 2.2 of Android and later have a Just In Time compiler that compiles the bytecodes to native code. This should provide a significant decrease in the processing time of this library. The CPUs used by Android devices are quickly increasing in their processing speed which again should give a processing speed advantage to the most recent devices.
This is the Jpeg object that can extract portions of large jpeg files without having to decode the entire picture into a bitmap so enabling parts of those pictures that would be impossible to load in their entirety to be displayed at full resolution.
As a side effect of the jpeg decoding this object also has the ability transform a bitmap to and from an array of Ints representing the ARGB values of each pixel of the bitmap assuming that the bitmaps are in ARGB_8888 format. BmpConfig can be used to check this. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
Progress(percent As Int) 'The percentage of decoding progress.