예제 #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));
        }