Hello,

  This exception doesn't make sense.
  Your Java installation seems to be broken or corrupted. You may want
  to try and reinstall it.

  If it still happens, please let us know your configuration (java version,
  os version), and provide a small test case reproducing the issue.

  Thanks,
    Dmitri


[EMAIL PROTECTED] wrote:
I am using drawimage method to draw a BufferedImage to another BufferedImage.
But got exceptions like:

java.lang.NoClassDefFoundError
        at
sun.awt.motif.X11CachingSurfaceManager.isDestSurfaceAccelerated(X11CachingSurfac
eManager.java)
        at
sun.awt.image.CachingSurfaceManager.getSourceSurfaceData(CachingSurfaceManager.j
ava)
        at sun.java2d.SurfaceData.getSourceSurfaceData(SurfaceData.java)
        at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java)
        at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java)
        at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:973)
        at sun.java2d.pipe.ValidatePipe.transformImage(ValidatePipe.java:220)
        at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2993)

my source code like:
Graphics2D g2d = (Graphics2D) watermarked_image.getGraphics(); //Create an alpha composite of 40%
        float opacity = 0.4f;
        AlphaComposite alpha = 
AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opacity);
g2d.setComposite(alpha); g2d.drawImage(added_image, 0, 0, null);
        g2d.dispose();

where watermarked_image and added_image are two BufferedImage.


Any one has idea?
[Message sent by forum member 'jiezhang' (jiezhang)]

http://forums.java.net/jive/thread.jspa?messageID=290764

===========================================================================
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".

===========================================================================
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".

Reply via email to