[3371] in java-interest

home help back first fref pref prev next nref lref last post

scale() & boolean conversion

daemon@ATHENA.MIT.EDU (Henry See)
Thu Nov 9 13:36:22 1995

Date: Thu, 9 Nov 1995 11:03:32 -0500
To: java-interest@java.sun.com
From: hsee@citi.doc.ca (Henry See)

Hello,

A few minor problems...

1. We are trying to save and retrieve boolean values in a properties file.
They are saved as strings. How do we read them back as booleans? (We can't
figure out how to use the getBoolean() method in Boolean which says it
reads a property name -- is this the same type of "property"?)

2. I am trying to scale a clone of a graphics object and insert it into the
original. (I want to preserve the original).

copyOfImage =3D (Image)offscreen.clone();
// I have also tried:
// mapscreen.copy(offscreen);
// However it returns nullPointerExceptions in runtime.
copyGraphics =3D copyOfImage.getGraphics();
copyOfGraphics.scale(.5f, .5f);
offGraphics.drawImage(copyOfImage,0, 0, null);
g.drawImage(offscreen, 0, 0, null);

It draws two identical images over each other at 100%. (I can see this by
setting off the images in the drawImage command.) However, if I scale
offGraphics then it works (but I get infinite scaling regression).

3. Dialog windows which worked in prebeta are acting funny in beta. They
appear briefly where they are supposed to and then relocate to the topleft
of the screen.

4. Again in beta, windows appear blue until resized by hand unless they
have a menubar. (This is more than just the blue-flash in the
Appletviewer...)(Running a Java application on a Sparc 20 with Solaris.)

Thanks,

Henry

Henry See
---------
Invited Researcher
C.I.T.I. (Centre d'Innovation en Technologies de l'Information)
Industry Canada 1575 boulevard Chomedey
Laval, Qu=E9bec, Canada H7V 2X2 Phone 514-973-5852, fax 514-973-5757
www home page: http://macsee.citi.doc.ca

ISEA 95: Emergent Senses - Montreal, Septemeber 17-24, 1995
The Sixth International Symposium on Electronic Art
http://lecaine.music.mcgill.ca/~isea95/index.html


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post