Article View: borland.public.jbuilder.java.language
Article #8463Re: Newbie : display a bmp
From: Carlos Ojea Castro
Date: Wed, 21 Mar 2001 10:22
Date: Wed, 21 Mar 2001 10:22
38 lines
1770 bytes
1770 bytes
Thank you, perhaps it would be better to use a gif instead...
Torsten Welches wrote:
> Carlos,
>
> The Java Advanced Imaging API claims to provide BMP support:
> http://java.sun.com/products/java-media/jai/
>
> Torsten
>
> Carlos Ojea Castro <ccastro@rslcom.es> wrote:
> >Hello !! :
> >
> >Someone knows why this code don't work?.
> >May I add another package ?
> >Here is my code :
> >
> >import java.awt.*;
> >class Principal
> >{
> > public static void main(String arg[]) throws InterruptedException
> > {
> > Bitmap bmpTablero = new Bitmap("Tablero.bmp");
> > Graphics Tablero = bmpTablero.getGraphics();
> > Tablero.drawImage(bmpTablero, new Point(10, 10));
> > }
> >}
> >
> >JBuilder says :
> >'class Bitmap not found in class Principal'
> >'method drawImage(<any>,java.awt.Point)not found in class
> >java.awt.Graphics.
> >
> >Thanks,
> >Carlos
> >
Technical Details
Message-ID:
<3AB880EF.299A5600@rslcom.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!213.250.128.151References:
<3AB71ECB.E0306BEE@rslcom.es> <3ab86f85$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,def0e2b29bce1e8f X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-23 04:08:06 PST Message-ID: <3AB880EF.299A5600@rslcom.es> Date: Wed, 21 Mar 2001 11:22:39 +0100 From: Carlos Ojea Castro <ccastro@rslcom.es> X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Newbie : display a bmp References: <3AB71ECB.E0306BEE@rslcom.es> <3ab86f85$1_2@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.250.128.151 X-Trace: 21 Mar 2001 02:22:16 -0800, 213.250.128.151 Lines: 39 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!213.250.128.151