Hi Everyone,
i'm fetching bufferedImages from camera and want to scale them to whatever window-size is.
Therefore i use the AffineTransform like this
1
| AffineTransform xform2 = AffineTransform.getScaleInstance((double)getWidth() / myWidth, (double)getHeight() / myHeight); |
where myWidth / myHeight hold the original Image width/height.
I draw the images via
1 2
| g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC); g2.drawImage(image, xform2, null); |
this works fine with about 25 fps, but when i switch to fullscreen i only got about 7 fps left.
when i run the application with the openGL pipeline Option
1
| -Dsun.java2d.opengl=True |
it slows down to 2 fps in small size.
Any idea highly appreciated.
quietschie