I have run into an issue with some code that is a bit difficult for me to understand (because it was programmed by someone else who did not like commenting very much). Maybe someone can push me in the right direction to get a better understanding of this issue.
In the code a custom composite is set for a Graphics2D object using the setComposite(...) method. After the drawImage(...) method gets called I see this InternalError: Exception in thread "AWT-EventQueue-0" java.lang.InternalError: Cannot construct general op for MaskBlit(...) Any CompositeContext at sun.java2d.loops.GraphicsPrimitive.setupGeneralBinaryOp(GraphicsPrimitive.java:476) at sun.java2d.loops.MaskBlit.makePrimitive(MaskBlit.java:115) at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:142) at sun.java2d.loops.MaskBlit.locate(MaskBlit.java:43) at sun.java2d.loops.MaskBlit.getFromCache(MaskBlit.java:56) at sun.java2d.pipe.DrawImage.renderImageXform(DrawImage.java:428) at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:251) at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:715) at sun.java2d.pipe.DrawImage.scaleImage(DrawImage.java:1012) at sun.java2d.pipe.ValidatePipe.scaleImage(ValidatePipe.java:201) at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3057) at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3006) at (our code) The Error occurs with JRE 1.6 b72 (and a bunch of previous releases). With JRE 1.5 this error did not occur, but a black rectangle gets painted. This is probably not the desired effect, either, but as I said, I have difficulties in understanding what exactly is happening. Is this InternalError a known bug? Do you think it is caused by our code (maybe in the custom composite) or is this rather a bug in the JDK? Any help is appreciated. Thanks Jan =========================================================================== 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".
