Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Tiff Image Loading in 3.6 M6

I am assuming that if we have a multi page tif that we will only get page 1 so I am not sure that the work around will work for us ..
I will attach my tif sample

Dave Smith
Candata Ltd.
416-493-9020x2413
Direct: 416-855-2413



On Thu, Apr 8, 2010 at 10:35 AM, Carolyn MacLeod <Carolyn_MacLeod@xxxxxxxxxx> wrote:

Loading black & white and greyscale TIFF images from a stream is not fully supported.
Please cc yourself to this bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=57382 and please attach your image that loads all black.

I suspect that your other image is not loading because it is running out of memory. Try catching the SWTException and printing it out to verify this.
If this is the case, you can add -Xmx1024M to your JVM arguments to increase the VM's heap memory.

In the meantime, there is a workaround for both images: load the images directly from the file, instead of loading from a stream.
For example: Image image1 = new Image(display, "/tmp/image1.tif");

Hope this helps,
Carolyn



From: Dave Smith <dave.smith@xxxxxxxxxxx>
To: "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date: 08/04/2010 07:34 AM
Subject: [platform-swt-dev] Tiff Image Loading in 3.6 M6
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





There seems to be some problems with the tif image loading. I have two examples where one loads it as a black image and another
gives an error when loading.


Dave Smith
Candata Ltd.
416-493-9020x2413
Direct: 416-855-2413
[attachment "TiffTest.java" deleted by Carolyn MacLeod/Ottawa/IBM] [attachment "image1.tif" deleted by Carolyn MacLeod/Ottawa/IBM] [attachment "image2.tif" deleted by Carolyn MacLeod/Ottawa/IBM]
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top