public override void BeforeRender(GdiGraphicsRenderer renderer)
        {
            if (renderer == null)
            {
                return;
            }

            if (_uniqueColor.IsEmpty)
            {
                _uniqueColor = renderer.GetNextHitColor(_svgElement);
            }

            var graphics = renderer.GdiGraphics;

            if (graphics == null)
            {
                return;
            }

            _graphicsContainer = graphics.BeginContainer();

            SetQuality(graphics);
            SetTransform(graphics);
            SetClip(graphics);
        }
Пример #2
0
        public override void BeforeRender(GdiGraphicsRenderer renderer)
        {
            if (_uniqueColor.IsEmpty && _textMode != GdiTextMode.Outlining)
            {
                _uniqueColor = renderer.GetNextHitColor(_svgElement);
            }

            var graphics = renderer.GdiGraphics;

            _graphicsContainer = graphics.BeginContainer();
            SetQuality(graphics);
            SetTransform(graphics);
        }
Пример #3
0
        public override void BeforeRender(GdiGraphicsRenderer renderer)
        {
            if (_uniqueColor.IsEmpty)
            {
                _uniqueColor = renderer.GetNextHitColor(this.Element);
            }

            var graphics = renderer.GdiGraphics;

            _graphicsContainer = graphics.BeginContainer();
            SetQuality(graphics);
            Transform(graphics);
        }