Skip to main content

[JAVA2D] error in GLF

1 reply [Last post]
Anonymous

Hi,

I've purchased the "Java 2D Graphics" book and It seems like really good
book, but the demo (demoTwo) of using the GLF, which is the key feature of
the book fails. I've downloaded & compiled the last GLF.

The exception:

java.lang.Error: Incompatible sizes or origin for src and dstIn rasters

at
com.sun.glf.goodies.ColorCompositeContext.compose(ColorCompositeContext.java
:135)

at sun.java2d.pipe.GeneralCompositePipe.renderPathTile(Unknown
Source)

at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source)

at sun.java2d.pipe.DuctusShapeRenderer.draw(Unknown Source)

at sun.java2d.pipe.ValidatePipe.draw(Unknown Source)

at sun.java2d.SunGraphics2D.draw(Unknown Source)

at com.sun.glf.StrokeRenderer.render(StrokeRenderer.java:110)

at com.sun.glf.ShapeLayer.paint(ShapeLayer.java:124)

at com.sun.glf.LayerComposition.paint(LayerComposition.java:346)

at
com.sun.glf.util.CompositionComponent.prepareOffscreen(CompositionCom

ponent.java:215)

at
com.sun.glf.util.CompositionFrame.setComposition(CompositionFrame.jav

a:328)

at
com.sun.glf.util.CompositionFrame$CompositionLoadThread.run(Compositi

onFrame.java:390)

Any help will be very helpful.

Cheers,

Dmitry.

--------------------

Creo

Dmitry Shultz | Software Developer

Tel: +1.604.451.2700 ext: 5443 | dmitry.shultz@creo.com
|
http://www.creo.com

IMAGINE CREATE BELIEVE(tm)

--------------------

Creo

Dmitry Shultz | Software Developer

Tel: +1.604.451.2700 ext: 5443 | dmitry.shultz@creo.com
|
http://www.creo.com

IMAGINE CREATE BELIEVE(tm)

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Vincent Hardy

Hello Dmitry,

Could you say on which version of the JDK you are experiencing this
problem (OS and JDK version)?

I suspect you are using JDK 1.4.x. The GLF code was making an assumption
regarding input raster that is no longer true in JDK 1.4.x.

I have a fix for the issue. To avoid cluttering people's mailbox, I'll
send it to you privately. If other people are interested, please send me
an email and I'll send you the updated jar file.

Regards,
Vincent.

> Hi,
>
>
>
> I've purchased the "Java 2D Graphics" book and It seems like really
> good book, but the demo (demoTwo) of using the GLF, which is the key
> feature of the book fails. I've downloaded & compiled the last GLF.
>
> The exception:
>
>
>
> java.lang.Error: Incompatible sizes or origin for src and dstIn rasters
>
> at
> com.sun.glf.goodies.ColorCompositeContext.compose(ColorCompositeContext.java:135)
>
> at sun.java2d.pipe.GeneralCompositePipe.renderPathTile(Unknown
> Source)
>
> at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source)
>
> at sun.java2d.pipe.DuctusShapeRenderer.draw(Unknown Source)
>
> at sun.java2d.pipe.ValidatePipe.draw(Unknown Source)
>
> at sun.java2d.SunGraphics2D.draw(Unknown Source)
>
> at com.sun.glf.StrokeRenderer.render(StrokeRenderer.java:110)
>
> at com.sun.glf.ShapeLayer.paint(ShapeLayer.java:124)
>
> at com.sun.glf.LayerComposition.paint(LayerComposition.java:346)
>
> at
> com.sun.glf.util.CompositionComponent.prepareOffscreen(CompositionCom
>
> ponent.java:215)
>
> at
> com.sun.glf.util.CompositionFrame.setComposition(CompositionFrame.jav
>
> a:328)
>
> at
> com.sun.glf.util.CompositionFrame$CompositionLoadThread.run(Compositi
>
> onFrame.java:390)
>
>
>
> Any help will be very helpful.
>
>
>
> Cheers,
>
> Dmitry.
>
>
>
>
>
> --------------------
>
> *Creo*
>
> Dmitry Shultz | Software Developer
>
> Tel: +1.604.451.2700 ext: 5443 | dmitry.shultz@creo.com
> | http://www.creo.com
>
>
> IMAGINE CREATE BELIEVE(tm)
>
>
>
>
>
> --------------------
>
> *Creo*
>
> Dmitry Shultz | Software Developer
>
> Tel: +1.604.451.2700 ext: 5443 | dmitry.shultz@creo.com
> | http://www.creo.com
>
>
> IMAGINE CREATE BELIEVE(tm)
>
>
>

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".