Пример #1
0
        public D2DLayer PushLayer(D2DGeometry geometry = null)
        {
            // FIXME: resolve to not use magic number
            D2DRect rectBounds = new D2DRect(-999999, -999999, 999999999, 999999999);

            return(PushLayer(rectBounds, geometry));
        }
Пример #2
0
 public void FillPath(D2DGeometry path, D2DColor fillColor)
 {
     D2D.FillPathD(path.Handle, fillColor);
 }
Пример #3
0
 public void DrawPath(D2DGeometry path, D2DColor strokeColor,
                      FLOAT strokeWidth = 1f, D2DDashStyle dashStyle = D2DDashStyle.Solid)
 {
     D2D.DrawPath(path.Handle, strokeColor, strokeWidth, dashStyle);
 }
Пример #4
0
 public void DrawPath(D2DGeometry path, D2DPen strokePen, FLOAT strokeWidth = 1f)
 {
     D2D.DrawPathWithPen(path.Handle, strokePen.Handle, strokeWidth);
 }
Пример #5
0
 public D2DLayer PushLayer(D2DLayer layer, D2DRect rectBounds, D2DGeometry geometry = null)
 {
     D2D.PushLayer(this.Handle, layer.Handle, ref rectBounds, geometry != null ? geometry.Handle : IntPtr.Zero);
     return(layer);
 }
Пример #6
0
        public D2DLayer PushLayer(D2DRect rectBounds, D2DGeometry geometry = null)
        {
            var layer = this.Device.CreateLayer();

            return(PushLayer(layer, rectBounds, geometry));
        }