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

From: Jason Pollard <jasonpollard_at_yahoo.com>
Date: 03/24/04
Message-ID: <20040324202539.48749.qmail@web9901.mail.yahoo.com>
Hi,
I guess that code should work.  I'm sending you a demo program I wrote a couple
of years ago.  It's a VisualPresenter test.  The graphic 'A' has a clear
background, the VP.BG color is LIME.  The main class is test12.class.  This is
for doja 1.0 -- I don't know about higher versions.

Hope this helps.

--Jason

--- nhogocong <nhogocong@yahoo.com> wrote:
> 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@yahoo.com>
> To: <keitai-l@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 ]
> 
> 
> 
> This mail was sent to address jasonpollard@yahoo.com
> Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/ 
> 

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

-- No attachments (even text) are allowed --
-- Type: application/octet-stream
-- File: vp2.jar
-- Desc: vp2.jar
Received on Thu Mar 25 01:10:40 2004