/// <summary> /// Applies the required transforms to <see cref="ISvgRenderer"/>. /// </summary> /// <param name="renderer">The <see cref="ISvgRenderer"/> to be transformed.</param> protected override void PopTransforms(RenderContext renderer) { // Pop transform: renderer.PopTransform(); // Pop element: base.PopTransforms(renderer); }
/// <summary> /// Renders the <see cref="SVGElement"/> and contents to the specified <see cref="Graphics"/> object. /// </summary> /// <param name="renderer">The <see cref="Graphics"/> object to render to.</param> public override void BuildFilter(RenderContext renderer) { if (Visibility == VisibilityMode.Hidden) { return; } renderer.PushTransform(this); SetClip(renderer); BuildChildren(renderer); ResetClip(renderer); renderer.PopTransform(this); }
protected virtual void PopTransforms(RenderContext renderer) { renderer.PopTransform(this); }