×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    47

    Fish eye effect in mobile?

    Hi, i need help ! does anyone know how to make a image have a zoom out effect, in j2me langauge, when the image selected? Its like the fisheye effect for web application . How to do it for mobile application?

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Fish eye effect in mobile?

    Hi,
    for this requirement you can have some idea from the link below..
    http://www.java-tips.org/java-me-tip...d-oom-out.html


    and the code lines
    private Image createThumbnail(Image image)
    {
    int sourceWidth = image.getWidth();
    int sourceHeight = image.getHeight();
    int thumbWidth = 64;
    int thumbHeight = -1;

    if (thumbHeight == -1)
    thumbHeight = thumbWidth * sourceHeight / sourceWidth;

    Image thumb = Image.createImage(thumbWidth, thumbHeight);
    Graphics g = thumb.getGraphics();

    for (int y = 0; y < thumbHeight; y++)
    {
    for (int x = 0; x < thumbWidth; x++)
    {
    g.setClip(x, y, 1, 1);
    int dx = x * sourceWidth / thumbWidth;
    int dy = y * sourceHeight / thumbHeight;
    g.drawImage(image, x - dx, y - dy, Graphics.LEFT | Graphics.TOP);
    }
    }

    Image immutableThumb = Image.createImage(thumb);

    return immutableThumb;
    }

    Hope this can help you,
    Thanks
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Fish eye effect in mobile?

    Hi,

    this Forum Nokia Wiki article explains how to build a fisheye menu using JSR 226:

    http://wiki.forum.nokia.com/index.ph...u_with_JSR_226

    Hope it helps,
    Pit

Similar Threads

  1. [moved] TWO THINGS YOU PROBABLY NEVER KNEW YOUR MOBILE PHONE COULD DO
    By shawnonmobile in forum General Development Questions
    Replies: 4
    Last Post: 2008-10-30, 16:16
  2. Searching for Software Developers for Android platform
    By tle40 in forum News and Announcements
    Replies: 1
    Last Post: 2008-09-30, 23:32
  3. Replies: 1
    Last Post: 2008-01-08, 09:58
  4. please helpme?.. this is the problem when mobile stolen..
    By ganngadhar in forum Symbian Networking & Messaging (Closed)
    Replies: 11
    Last Post: 2007-09-21, 07:55
  5. Replies: 0
    Last Post: 2007-09-14, 12:07

Posting Permissions

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