-
Notifications
You must be signed in to change notification settings - Fork 1
Home
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.
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:
- Part 1: Basic RGB image manipulation
- Part 2: Image resizing
- Part 3: Performance enhancement and Blackberry code
- Part 4: Image effects
- Part 5: Performance of transparent vs. opaque blit
- Part 6: Updates to the filter and pixel modifiers + 2D filtering support
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.
You can for example use the imagelib to
- dynamically resize your graphics, depending on the detected screen size
- create a "retro effect" application
- 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.
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 |
![]() |
retro |
![]() |
hist-eq |
![]() |
color temp |