Example #1
0
 internal void DestroyPen(D2DPen pen)
 {
     if (pen == null)
     {
         throw new ArgumentNullException(nameof(pen));
     }
     D2D.DestroyPen(pen.Handle);
 }
Example #2
0
 public void DrawRectangle(D2DRect rect, D2DPen strokePen, FLOAT strokeWidth = 1)
 {
     D2D.DrawRectangleWithPen(this.Handle, ref rect, strokePen.Handle, strokeWidth);
 }
Example #3
0
 public void DrawRoundedRectangle(D2DRoundedRect roundedRect, D2DPen strokePen, D2DBrush fillBrush, FLOAT strokeWidth = 1)
 {
     D2D.DrawRoundedRectWithBrush(this.Handle, ref roundedRect, strokePen.Handle, fillBrush.Handle, strokeWidth);
 }
Example #4
0
 public void DrawPath(D2DGeometry path, D2DPen strokePen, FLOAT strokeWidth = 1f)
 {
     D2D.DrawPathWithPen(path.Handle, strokePen.Handle, strokeWidth);
 }