You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/05/18 19:18:47 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge SVGFeGaussianBlurElementBridge.java
vhardy 01/05/18 10:18:46
Modified: sources/org/apache/batik/bridge
SVGFeGaussianBlurElementBridge.java
Log:
Temporary work around problem with default filter region
computation on SoureAlpha.
Revision Changes Path
1.11 +19 -3 xml-batik/sources/org/apache/batik/bridge/SVGFeGaussianBlurElementBridge.java
Index: SVGFeGaussianBlurElementBridge.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGFeGaussianBlurElementBridge.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- SVGFeGaussianBlurElementBridge.java 2001/05/02 16:14:32 1.10
+++ SVGFeGaussianBlurElementBridge.java 2001/05/18 17:18:43 1.11
@@ -27,7 +27,7 @@
* Bridge class for the <feGaussianBlur> element.
*
* @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a>
- * @version $Id: SVGFeGaussianBlurElementBridge.java,v 1.10 2001/05/02 16:14:32 tkormann Exp $
+ * @version $Id: SVGFeGaussianBlurElementBridge.java,v 1.11 2001/05/18 17:18:43 vhardy Exp $
*/
public class SVGFeGaussianBlurElementBridge
extends AbstractSVGFilterPrimitiveElementBridge {
@@ -88,7 +88,7 @@
return null; // disable the filter
}
- // feMorphology is a point operation. Therefore, to take the
+ // Therefore, to take the
// filter primitive region into account, only a pad operation
// on the input is required.
@@ -96,10 +96,26 @@
// regions unless 'in' is 'SourceGraphic' in which case the
// default region is the filterChain's region
Filter sourceGraphics = (Filter)filterMap.get(SVG_SOURCE_GRAPHIC_VALUE);
+
+ // <!> HACK / TEMPORARY FIX. HANDLE SOURCE ALPHA REGION
+ // DEFAULT PROPERLY. THIS REQUIRES A MORE GENERIC FIX.
+ String inStr = filterElement.getAttributeNS(null, SVG_IN_ATTRIBUTE);
+ /////////////////////////////////////////////////////////////////////
+
Rectangle2D defaultRegion;
if (in == sourceGraphics) {
+ defaultRegion = filterRegion;
+ }
+
+ // <!> HACK PART TWO / TEMPORARY FIX. HANDLE SOURCE ALPHA REGION
+ // DEFAULT PROPERLY. THIS REQUIRES A MORE GENERIC FIX.
+ /////////////////////////////////////////////////////////////////////
+ else if( SVG_SOURCE_ALPHA_VALUE.equals(inStr) ){
+ System.out.println("SourceAlpha");
defaultRegion = filterRegion;
- } else {
+ }
+ /////////////////////////////////////////////////////////////////////
+ else {
defaultRegion = in.getBounds2D();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org