Home
2008:
January
February
March
April
May
June
July
August
2007:
January
February
March
April
May
June
July
August
September
October
November
December
2006:
January
February
March
April
May
June
July
August
September
October
November
December
2005:
January
February
March
April
May
June
July
August
September
October
November
December
2004:
January
February
March
April
May
June
July
August
September
October
November
December
2003:
January
February
March
April
May
June
July
August
September
October
November
December
2002:
January
February
March
April
May
June
July
August
September
October
November
December
2001:
January
February
March
April
May
June
July
August
September
October
November
December
2000:
April
May
June
July
August
September
October
November
December

(keitai-l) Re: Draw a TRANSPARENT image using Visual Prensenter in Doja

From: nhogocong <nhogocong_at_yahoo.com>
Date: 03/24/04
Message-ID: <20040324092131.16850.qmail_at_web60710.mail.yahoo.com>
Hi,
I haven't caught what you say yet. My VP doesn't even
work on the emulator.
I use some code like:
     VisualPresenter vp = new VisualPresenter();
     vp.setImage(imgBall);
     this.setLayoutManager(null);
     this.add(vp);
     vp.setLocation(0,0);
But when I display on the screen (the screen
background is color A, say),
the background outside the image is still not color A
(i.e not transparent).
I want the background around the image is A as well

---------------
|                       |
|      -------       |
|     |  AA  |       |
|      -------       |
----------------

Let the outer rectangular is the screen. The small
rectangular is the box contains the image (the vp). AA
is the image (which is transparent).

Then the inner box don't have the same background with
the outer
rectangular. (I can't use setbackground as the outer
box may have the
background, which is a image, not a specific int
colour)

Any suggestions?

Linh



----- Original Message ----- 
From: "Jason Pollard" <jasonpollard_at_yahoo.com>
To: <keitai-l_at_appelsiini.net>
Sent: Wednesday, March 24, 2004 1:04 AM
Subject: (keitai-l) Re: Draw a TRANSPARENT image using
Visual Prensenter in
Doja


> I think the behavior of the VisualPresenter depends
on the device
> implementation, and there's no spec on it.  So it
may work OK on the
emulator,
> work OK on one device, but looks strange on another.

[ excessive quoting removed by moderator ]
Received on Wed Mar 24 11:22:06 2004