示例#1
0
        public override void FillRenderVx(Brush brush, RenderVx renderVx)
        {
            //TODO: review brush implementation here
            WinGdiRenderVx wRenderVx = (WinGdiRenderVx)renderVx;

            VxsHelper.FillPath(_skCanvas, wRenderVx.path, _fill);
        }
示例#2
0
        public override RenderVx CreateRenderVx(VertexStoreSnap snap)
        {
            var renderVx = new WinGdiRenderVx(snap);

            renderVx.path = VxsHelper.CreateGraphicsPath(snap);
            return(renderVx);
        }
示例#3
0
        public override void PaintSeries(VertexStore vxs, Color[] colors, int[] pathIndexs, int numPath)
        {
            var prevColor = FillColor;

            for (int i = 0; i < numPath; ++i)
            {
                _fill.Color = ConvToSkColor(colors[i]);
                VxsHelper.FillVxsSnap(_skCanvas, new VertexStoreSnap(vxs, pathIndexs[i]), _fill);
            }
            FillColor = prevColor;
        }
示例#4
0
        public override void FillRenderVx(RenderVx renderVx)
        {
            WinGdiRenderVx wRenderVx = (WinGdiRenderVx)renderVx;

            VxsHelper.FillPath(_skCanvas, wRenderVx.path, _fill);
        }
示例#5
0
        public override void DrawRenderVx(RenderVx renderVx)
        {
            WinGdiRenderVx wRenderVx = (WinGdiRenderVx)renderVx;

            VxsHelper.DrawPath(_skCanvas, wRenderVx.path, _stroke);
        }
示例#6
0
 /// <summary>
 /// we do NOT store snap/vxs
 /// </summary>
 /// <param name="snap"></param>
 public override void Fill(VertexStoreSnap snap)
 {
     VxsHelper.FillVxsSnap(_skCanvas, snap, _fill);
 }
示例#7
0
 /// <summary>
 /// we do NOT store snap/vxs
 /// </summary>
 /// <param name="vxs"></param>
 public override void Fill(VertexStore vxs)
 {
     VxsHelper.FillVxsSnap(_skCanvas, new VertexStoreSnap(vxs), _fill);
 }
示例#8
0
 public override void Draw(VertexStore vxs)
 {
     VxsHelper.DrawVxsSnap(_skCanvas, new VertexStoreSnap(vxs), _stroke);
 }