[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Larger image problems

Hi,

I have the following problem:
        ...
        Image image = new Image(getDisplay(), 4000, 4500);
        ...

With the above line I get th following error:

org.eclipse.swt.SWTError: No more handles
 at org.eclipse.swt.SWT.error(SWT.java:2717)
 at org.eclipse.swt.graphics.Image.init(Image.java:1366)
 at org.eclipse.swt.graphics.Image.<init>(Image.java:161)
 at ro.zerosoft.swt.PrintPreview.<init>(PrintPreview.java:107)
 at ro.zerosoft.swt.PrinterClass.<init>(PrinterClass.java:70)
 at ro.zerosoft.swt.PrinterClass.<init>(PrinterClass.java:49)
 at
ro.zerosoft.swt.test.ComponentTest.createPrintPreviewSample(ComponentTest.ja
va:965)
 at ro.zerosoft.swt.test.ComponentTest.main(ComponentTest.java:59)
Exception in thread "main"

I've searched over the newsgroup and I find an unanswered post with
"Workaround for larger images ?" subject and found in the MSDN that only on
"Win95/98/ME: The created bitmap cannot exceed 16MB in size.", I'm running
on Windows 2000.
So my question is that there is a limitation on Win 2000 also, or there is a
problem in JNI of SWT ?

Regards,
Boby