Re: [JAVA2D] drawimage exception

2008-08-04 Thread java2d
This problem was solved by correctly constructing Buffered Images.
[Message sent by forum member 'jiezhang' (jiezhang)]

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

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


Re: [JAVA2D] drawimage exception

2008-08-03 Thread java2d
Please post the code which reproduces the problem. We can't do much if we can't 
reproduce the issue.

Dmitri
[Message sent by forum member 'trembovetski' (trembovetski)]

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

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


Re: [JAVA2D] drawimage exception

2008-08-01 Thread java2d
This problem is solved by constructing BufferedImage correctly.
But still not sure why it is such exception thrown out.
Can't find underline source code.
[Message sent by forum member 'jiezhang' (jiezhang)]

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

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


Re: [JAVA2D] drawimage exception

2008-07-31 Thread Dmitri Trembovetski

  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.