Hi,
I understand that this question is related to GVT (part of Batik) and not
Batik/SVG directly. If someone can help me with GVT privately, I'd
thankfully refrain from sending GVT questions to the list. Sorry if this
causes inconvenience to you as a list user.
I'm trying to draw a gaussian blurred rectangle on to the Graphics passed in
via the paintComponent(g) call of JComponent. To do this, I call the
paint(g2d,rc) method of a CanvasGraphicsNode I've already set up. This has
only one node set-up as below.
GraphicsNode aNode = GVTSupport.createShapeNode(new
Rectangle(50,150,100,60),Color.red,null,null);
GraphicsNodeRenderContext rc = GVTSupport.getRenderContext();
Filter aFilter =
GVTSupport.getGNRFactory().createGraphicsNodeRable(aNode,rc);
aFilter = new GaussianBlurRable8Bit(aFilter,2.0f,2.0F);
aNode.setFilter(aFilter);
rootGN.add(aNode);
GVTSupport is a convenience class with which I construct the node.
The problem is that though the Rectangle is drawn, the gaussian blur didn't
work the way I expected. I can see that the blurring was carried out,but the
pixels were still either red (the fill color) or white (the background
color). Instead of a blurred edge with color changing from red to white, I
see a distinct edge. I can tell that blurring has occurred because, the
resultant rectangle has rounded corners and is larger than the original
rectangle.
I suspect it is some kind of color space issue, but I couldn't figure out
what I did wrong. If anyone could see it, please let me know. Thanks in
advance. :)
Cheers,
Edison
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]