private Matrix getTransform() { if (this.mMatrix != null) { return(this.mMatrix); } else { string transfromString = this.mSVGAttributes.getStringAttribute(SVGConstants.ATTRIBUTE_GRADIENT_TRANSFORM, false); if (transfromString != null) { this.mMatrix = SVGTransformParser.parseTransform(transfromString); return(this.mMatrix); } else { if (this.mParent != null) { return(this.mParent.getTransform()); } else { return(null); } } } }
bool pushTransform(Attributes pAttributes) { string transform = pAttributes.GetStringAttribute(SVGConstants.ATTRIBUTE_TRANSFORM); if (transform == null) { return(false); } else { Matrix matrix = SVGTransformParser.parseTransform(transform); this.mCanvas.Save(); this.mCanvas.Concat(matrix); return(true); } }