This page was last modified 06:26, 27 November 2007.
KIJ000788 - Using createImage to mirror certain PNGs causes phone to crash
From Forum Nokia Wiki
This known issue was originally created by Ed welch and has been verified by Forum Nokia.
| ID | KIJ000788 | Creation date | November 27, 2007 |
| Platform | S60 3rd Edition | Devices | All |
| Category | Java ME | Subcategory | Graphics |
Description
This problem only occurs with 8-bit PNG images with dimensions 31 x [an odd number of pixels] and have transparent pixels. It happens when you use Image.createImage to transform an image as follows:
Image mirror = Image.createImage(image, 0, 0,
image.getWidth(), image.getHeight(), Sprite.TRANS_MIRROR);
g.drawImage(mirror, 80, 80, Graphics.HCENTER|Graphics.TOP);
When you draw the image, it will be shown with the transparent pixels of the right-hand side replaced with white pixels. If you try drawing the image several times, the phone will eventually crash.
Solution
Do not use bitmaps with dimensions of 31 x [an odd number of pixels].
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error when iMtmMms->SetCurrentEntryL(); is called | rdx83160 | General Symbian C++ | 0 | 2004-03-03 11:45 |
| MobileCrash_ files... with crash watcher? | steffi1 | General Symbian C++ | 4 | 2006-03-31 19:54 |
| Nokia Web Browser crash | davidmaxwaterman | General Browsing | 6 | 2007-08-22 23:37 |
| has anybody used CAgnObserver? | alampi | General Symbian C++ | 14 | 2005-01-30 02:26 |
| Emulator crash 3rd FP1 | Lichtens | Symbian Tools & SDKs | 10 | 2008-02-21 15:10 |

