| Reply | « Previous Thread | Next Thread » |
|
How we can reduce the jar size apart from obfuscation? What are the possible targets to reduce the size of the application? I have used pngout and still my application is exceeding the limit.
Thanks in advance |
| j2me_halosys |
| View Public Profile |
| Find all posts by j2me_halosys |
|
I use ImageOptimizer from xat.com. You can download a test version and see.
If you have many PNGs using the same color palette, make one file of it and work with setClip (x, y, w, h) or clipRect(...) before painting. g.setClip(xCoordDisplay, yCoordDisplay, width, height); // definitely the area to be affected g.paintImage(xCoordDisplay-xCoordPNG, yCoordDisplay-yCoordPNG, Graphics.TOP|Graphics.LEFT); // only paint the required area of your PNG Storing the image data (xCoordPNG..) in a final byte or int Array is usefull. Don't use many packages/folders. Good luck! |
|
ouh sorry,
g.drawImage(...) |
|
and the Image itself might be the first argument.
Where's my mind? |
|
Hi Roger,
Thanks for the information. It would be really helpful, if you could help us with the code to convert images into a single binary resource file and vice-versa. Thanks for your time. |
| j2me_halosys |
| View Public Profile |
| Find all posts by j2me_halosys |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| 6020 jar size limit | mikbjo | Mobile Java General | 4 | 2005-05-19 16:38 |
| The correct meaning of MAX JAR size | bigrio | Mobile Java General | 1 | 2004-11-16 11:30 |
| The correct meaning of MAX JAR size | bigrio | Mobile Java General | 0 | 2004-11-13 12:03 |
| A Different Jar Size Limit Problem | cicdem | Mobile Java General | 0 | 2004-06-17 16:01 |
| limit size of jar file | johnmobile | Mobile Java General | 18 | 2003-09-26 20:13 |