🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3523

CreateImage(w,h) in a Java Application?

#3523
From: S.T.
Date: Sun, 14 Dec 1997 00:00
24 lines
1118 bytes
Hey,

I seem to be having trouble using CreateImage(w,h) in a Java
application.  It seems when I try the applet version of my program,
everything works fine.  When I embed the same applet in a frame in my
application, the CreateImage() call returns NULL, and everything else
blows up.

The line of code I'm working with is similar to:

offScreenImage = createImage(width, height);        //this line fails in
an application
offScreenGraphic = offScreenImage.getGraphics();

(Yes, it's double buffering.)

Any ideas, or do I need to create an image in an application another
way?


Thanks for your help,

Steve
Technical Details
Message-ID: <34942E67.EE92E8A2@whc.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,114f8832447813b5,start
X-Google-Attributes: gid1089d0,public
From: "S.T." <teixeira@whc.net>
Subject: CreateImage(w,h) in a Java Application?
Date: 1997/12/14
Message-ID: <34942E67.EE92E8A2@whc.net>
X-Deja-AN: 298130960
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Reply-To: teixeira@whc.net
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.api