×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    18

    j2me image flipping

    hi all,

    can any one help me on how to apply image flipping in j2me?

    thanks a lot,

    Omar,

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: j2me image flipping

    See this link it will give some help - you may need to port it to j2me -
    http://www.java2s.com/Code/Java/2D-G...DataBuffer.htm
    Thanks,
    Ekta

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: j2me image flipping

    MIDP-2 provides for drawing images mirrored along either the X or Y axis.

    Code:
    protected void paint(Graphics g) {
        g.drawRegion(img, 0, 0, img.getWidth(), img.getHeight(), Sprite.TRANS_MIRROR, x, y, Graphics.TOP | Graphics.LEFT);
    }
    Check the JavaDocs for javax.microedition.lcdui.Graphics.drawRegion().

    You can also use Nokia's API, though you should use this only if you need to support MIDP-1 devices.

    Graham.

  4. #4
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: j2me image flipping

    hehe,
    and a new wiki-article is born : http://wiki.forum.nokia.com/index.ph..._Image_in_J2me
    Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.

Similar Threads

  1. Coin flipping
    By computerxt in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2010-06-17, 06:23
  2. 6680 flipping images
    By ianstrain in forum Mobile Java General
    Replies: 1
    Last Post: 2005-12-01, 15:43
  3. Series 40 flipping Image and clipping problem
    By ankur_k in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-03-12, 06:44
  4. Flipping bitmaps
    By luisalv in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2003-11-22, 19:50
  5. FLIPPING AND ROTATING IMAGES
    By adshead999 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2002-11-11, 10:31

Posting Permissions

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