Search found 6 matches

by javivf
Wed Nov 03, 2010 8:10 am
Forum: Developers
Topic: How to calculate total area?
Replies: 1
Views: 7739

Re: How to calculate total area?

Yes, you can use Room.getArea(), take a look into documentation at http://www.sweethome3d.com/javadoc/index.html
by javivf
Tue Nov 02, 2010 10:09 pm
Forum: Developers
Topic: Getting a PNG Photo Image
Replies: 3
Views: 5061

Re: Getting a PNG Photo Image

I just tried your code and it worked as expected (under Mac OS X). You don't need to create the BufferedImage instance, and you can call create getOffScreenImage directly

True, it works fine. It was a permissions problem with windows vista. Thanks for tip, i'm just a java newbie. I hope this ...
by javivf
Tue Nov 02, 2010 3:51 pm
Forum: Developers
Topic: Getting a PNG Photo Image
Replies: 3
Views: 5061

Getting a PNG Photo Image

Hi there,

I'm trying to save a png image with this code but not works :


HomeComponent3D homeComponent3D = new HomeComponent3D(getHome());
int imageWidth = 400;
int imageHeight = 400;
BufferedImage image = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
image ...
by javivf
Sun Apr 04, 2010 9:15 pm
Forum: Developers
Topic: My first plugin :)
Replies: 3
Views: 5009

Re: My first plugin :)

My fault, i can access to iText with that:

java -Djava.ext.dirs=/usr/local/src/SweetHome3D/lib:/usr/local/src/SweetHome3D/libtest/:/usr/local/src/SweetHome3D/lib/linux/ -jar SweetHome3D-2.3.jar

Sorry for any inconvenience!
by javivf
Sat Apr 03, 2010 5:03 pm
Forum: Developers
Topic: My first plugin :)
Replies: 3
Views: 5009

Re: My first plugin :)

I'm trying to run on Ubuntu linux with this command line :
java -jar SweeHome3D.jar

I'm java newbie too but in this .jar exists iText-2.1.7.jar and I thought it was SweetHome3DBootstrap work load this jars when i start the application.
by javivf
Sat Apr 03, 2010 10:13 am
Forum: Developers
Topic: My first plugin :)
Replies: 3
Views: 5009

My first plugin :)

I'm trying to develop a plugin and need to use iText but I always get the following error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com / Lowagie / text / DocumentException

How can i use iText ?