Article View: borland.public.jbuilder.java.language
Article #8430Re: Newbie : display a bmp
From: Torsten Welches
Date: Wed, 21 Mar 2001 09:08
Date: Wed, 21 Mar 2001 09:08
34 lines
1674 bytes
1674 bytes
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:
<3ab86f85$1_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!206.252.192.28!news.stealth.net!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!207.105.83.65References:
<3AB71ECB.E0306BEE@rslcom.es>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 03:57:27 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Subject: Re: Newbie : display a bmp Newsgroups: borland.public.jbuilder.java.language X-User-Info: 193.158.55.74 193.158.55.74 References: <3AB71ECB.E0306BEE@rslcom.es> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ab86f85$1_2@dnews> Date: 21 Mar 2001 01:08:21 -0800 X-Trace: 21 Mar 2001 01:08:21 -0800, 207.105.83.65 Lines: 35 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!206.252.192.28!news.stealth.net!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!207.105.83.65