Results 1 to 8 of 8
  1. #1
    Ashish_jain's Avatar
    Ashish_jain is offline Member
    Join Date
    Jun 2011
    Posts
    32
    Rep Power
    0

    Default Compressed Image in j2me

    I m developing Cricket game and i need to compress image at run time. how can i do this.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Depends what you mean by 'compress'

    db

  3. #3
    Ashish_jain's Avatar
    Ashish_jain is offline Member
    Join Date
    Jun 2011
    Posts
    32
    Rep Power
    0

    Default

    Actual size of image is very large so i have to reduce size of image.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Time for a link: How to ask questions the smart way

    Are you referring to the pixel size of the image? Then your question is about scaling, not compressing
    Or are you referring to the file size? Then your question is about codecs and/or zip formats.

    db

  5. #5
    Ashish_jain's Avatar
    Ashish_jain is offline Member
    Join Date
    Jun 2011
    Posts
    32
    Rep Power
    0

    Default

    i devloping Cricket game but Image size is large.So that this game not run on mobile device.I think Image have to convert into byte[] form.but i m not capable to do this.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Again, when you say 'Image size is large' are you referring to the pixel size of the image or the size of the file from which you load it?

    db

  7. #7
    Ashish_jain's Avatar
    Ashish_jain is offline Member
    Join Date
    Jun 2011
    Posts
    32
    Rep Power
    0

    Default

    I referring pixel size of the image

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,000
    Blog Entries
    7
    Rep Power
    20

    Default

    Cricket, isn't that the event where folks wearing white trousers are standing in a meadow somewhere, doing nothing, while a few of them in the middle are playing with some wood and a ball; for mysterious reasons they all start to run around a bit and then they have tea. For reasons that are also beyond me, such events can take up days while the audience is sleeping (or so they told me)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Create GZIP compressed data using DeflaterInputStream?
    By johann_p in forum Advanced Java
    Replies: 15
    Last Post: 05-17-2011, 11:56 AM
  2. Receive uploaded image / video (byte array) from j2me on jsp.HOW???
    By angelicsign in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-29-2010, 06:21 PM
  3. J2ME background image
    By sandeeprao.techno in forum CLDC and MIDP
    Replies: 0
    Last Post: 09-14-2009, 09:02 AM
  4. work on byte image in j2me
    By sunitikumar in forum CLDC and MIDP
    Replies: 0
    Last Post: 07-24-2008, 04:12 PM
  5. Image Processing in J2ME
    By mobeenkhan in forum CLDC and MIDP
    Replies: 1
    Last Post: 08-02-2007, 05:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •