Larger image problems [message #452343] |
Thu, 17 March 2005 15:14 |
Robert Bacs Messages: 165 Registered: July 2009 |
Senior Member |
|
|
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:5 9)
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
|
|
|
Powered by
FUDForum. Page generated in 0.03203 seconds