Skip to content
Tubeman, The edited this page Jun 2, 2013 · 1 revision

2016 foreword

Back in the good old days when people were using J2ME phones with 40KB or less free memory, handling images within an app was an art. Back then I did a lot of mobile development and had to write my own image handling library that didn't suck (in contrast to the one supplied by the Nokia, Ericsson and the rest). I got some requests from fellow developers and eventually published the library as open source together with a series of blog posts.

Those posts and the library source code lives now in this repository. It's usefulness is highly questionable so I am publishing it mainly for historical reasons.

Imagelib

The tube42 imagelib is a minimal image manipulation library for J2ME phones. It was initially published on my blog in a ​series of articles about lightweight image processing:

Currently, the library contains functions for color operations including interpolation, blending and RGB/YCbCr conversion, image operations including resizing, blending, filtering and pixel modifiers and some simple image analysis functions.

Great, but what is it for?

You can for example use the imagelib to

  • dynamically resize your graphics, depending on the detected screen size
  • create a "retro effect" application

What is it NOT good for?

  • J2ME is slow and so are most J2ME phones. Given that image processing is very CPU intensive, this library is NOT suitable for real-time effects and such.

Examples

The source code contains a MIDlet sample project that demonstrates many aspects of the library. The following images were generated by the sample project running on a phone:

sepia
sepia
retro
retro
hieq
hist-eq
color
color temp
Clone this wiki locally