Hi, On 10. sep.. 2008, at 14.12, [EMAIL PROTECTED] wrote:
2) When using ImageIO, sticking a BufferedImage into the params object ("forcing" the ImageIO to use the supplied BI instead of allocating itself), will this permanently defeat acceleration for this BI instance? (Basically, does ImageIO access the data buffer? If it does, is there some magic there that could internally tell the system to re-copy the data buffer to VRAM?)
As a writer of several 3rd party plugins for use with ImageIO, I can only tell you that this is up to the plugin. The behaviour is probably the same, regardless of passing a destination image or not (but again, that might be up to the plugin).
I think however that it is possible to stick to only performing operations on the Raster and thus preserving the accelerated version. My own plugins don't "behave well" in this area, and this is something I plan to fix when time permits.
The plugins supplied by the JDK and maybe even JAI ImageIO should behave this way (preserve acceleration). Somebody, please correct me if I'm wrong. :-)
Best regards, -- Harald K =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
