J2ME: How to display a sprite with a transparent background?

Discussion in 'Java' started by Lasse Laegteskov, Jun 18, 2004.

  1. I have read that MIDP 1.0 doesn't support transparency in PNG's files unless
    the mobile company have included a support for it.

    So I would like to know how I can draw an image (sprite) with a backcolor of
    e.g. white only showing the sprite and not the background colour.

    Is there a way to control an image pixel making the transperancy turn on and
    off?

    Please include a little bit of code.

    Thanks

    Lasse
     
    Lasse Laegteskov, Jun 18, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VB Programmer
    Replies:
    0
    Views:
    400
    VB Programmer
    Jun 30, 2003
  2. Ather Ali Shaikh

    How do i change background color to transparent

    Ather Ali Shaikh, Dec 4, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    4,358
    Chris Jackson
    Dec 4, 2003
  3. Jeff

    sprite & image - j2me

    Jeff, Mar 30, 2006, in forum: Java
    Replies:
    0
    Views:
    4,867
  4. JWL
    Replies:
    4
    Views:
    614
    Michael Winter
    Sep 26, 2006
  5. Python Nutter
    Replies:
    0
    Views:
    525
    Python Nutter
    Jul 10, 2008
Loading...

Share This Page