|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Windows XP SP2 dualview Rendering on one monitor only.Hello there,
I would greatly appreciate if one of you Java2D guru could help me out with my problem. I've got a rendering engine that draws an image on multiple backbuffers (VolatileImages) and then blit them together as one before drawing it on a JPanel. Under Windows XP with dual monitor capabilities set as dualview when I drag the application to the second monitor the JPanel image goes blank and when I drag it back onto the initial monitor the image comes back. A potential solution was to recreate the VolatileImages with the new GraphicsConfiguration object as I move across monitors but the whole application just hangs. Does anyone has ever experience something like it? Cheers, [Message sent by forum member 'magpie' (magpie)] http://forums.java.net/jive/thread.jspa?messageID=290011 =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
Re: Windows XP SP2 dualview Rendering on one monitor only. Hi,
First of all, what java version is this with? Have you tried 6u10 (http://jdk6.dev.java.net)? java2d@... wrote: > Hello there, > > I would greatly appreciate if one of you Java2D guru could help me out with my problem. > > I've got a rendering engine that draws an image on multiple backbuffers (VolatileImages) and then blit them together as one before drawing it on a JPanel. > Under Windows XP with dual monitor capabilities set as dualview when I drag the application to the second monitor the JPanel image goes blank and when I drag it back onto the initial monitor the image comes back. > A potential solution was to recreate the VolatileImages with the new GraphicsConfiguration object as I move across monitors but the whole application just hangs. It's not really a potential solution but a requirement. When window is moved to a different screen its GraphicsConfiguration changes so you'll get IMAGE_INCOMPATIBLE error when validating a Volatile image prior to copying. This is when you're supposed to recreate the images: http://java.sun.com/javase/6/docs/api/java/awt/image/VolatileImage.html Could you get a stack trace of the hang? Also, I would suggest to use BufferStrategy for double buffering instead of VolatileImages, it's more efficient. Thanks, Dmitri > Does anyone has ever experience something like it? > > Cheers, > [Message sent by forum member 'magpie' (magpie)] > > http://forums.java.net/jive/thread.jspa?messageID=290011 > > =========================================================================== > To unsubscribe, send email to listserv@... and include in the body > of the message "signoff JAVA2D-INTEREST". For general help, send email to > listserv@... and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
Re: Windows XP SP2 dualview Rendering on one monitor only.Hi Dimitri,
Thanks a lot for your reply, greatly appreciated. it turn out it was in a deadlock I was accessing the graphicsConfiguration from different threads which is protected by a lock. [Message sent by forum member 'magpie' (magpie)] http://forums.java.net/jive/thread.jspa?messageID=290840 =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
| Free Forum Powered by Nabble | Forum Help |