Re: help creating transparent image



You can create images with alpha support using BufferedImage and such. I'm
not aware of MIDP supporting (partially) transparent images created in code
without a bit of a workaround. Said workaround involves creating a PNG
compatible byte[] from your original pixel data and pass it to
createImage(byte[] imageData);

Remon van Vliet

"Jeff" <it_consultant1@xxxxxxxxxxxxxxxxxx> wrote in message
news:4ICdne7zCY1oSrbZRVnzvA@xxxxxxxxxxxxxx
midp 2.0
Java SE 5.0
J2ME version 2.2

This code creates an image with white background with circle filled with a
light green color:
Image image = Image.createImage(60,60);
Graphics s = image.getGraphics();
s.setColor(0xCCFFCC);
s.fillArc(0, 0, 60, 60, 90, 360);

But I don't want the white background, I want the background to be
transparent... This image is put into a sprite and displayed on the
screen. And I very much would like to remove the white background of the
image object - it would greatly improve the layout...

This image is created during program execution... so I cannot fix this
using Photoshop or any other image edititing software

So please come with suggestions on how to make the white background
transparent

Jeff



.



Relevant Pages

  • Re: Transparency on the background of a picture
    ... Enhanced Metafile format supporting Transparent backgrounds. ... > dark red and the logo looks silly with a white background. ...
    (microsoft.public.access.forms)
  • Re: BMP Print Problem
    ... if that makes the grey area transparent in the places you need it to be ... area as opposed to a white background. ... "Indy" wrote in message ... > PowerPoint and I just made the bmp in MS Paint with the ...
    (microsoft.public.powerpoint)
  • Re: Ladybird question
    ... to make it transparent ... >save as a transparent GIF ... >looks just fine against a white background, ... But the pixels at the ...
    (uk.comp.sys.mac)
  • Re: Help with XML Title overlay
    ... Well I followed the instructions in the help menu to create a transparent ... it does have a white background. ... your logo should be transparent. ...
    (microsoft.public.windowsxp.moviemaker)