I have a problem with Nokia S40 (all models I tried - C1, C2, 6603 etc.)
In my Java application, I need to assemble a picture from several rectangular blocks that are jpeg-compressed. When I decode blocks and then combine them into bigger image, the resulting blocks have slightly different brightness - so I can see it on the resulting image. The code fragment is:
Putting the fragment onto resulting image:
Image blockImage = Image.createImage(blockSize.width, blockSize.height);
Graphics blockGraphics = blockImage.getGraphics();
Image fragmentImg = Image.createImage(fragment.getData(), fragment.getBegin(), fragment.getLength());
blockGraphics.drawImage(fragmentImg, fragment.getBase().x, fragment.getBase().y, 0);
Everything works OK on WTK emulators as well as on my Sony ErricssonK750 - all fragments have the same brightness and tone and there are no visible bounds between fragments.
fullImage = Image.createImage(width, height);
bufferGraphics = fullImage.getGraphics();
bufferGraphics.drawImage(blockImage, localBlockBase.x, localBlockBase.y, 0);
Could anybody help me - how to work out my problem?