示例#1
0
文件: D2DDevice.cs 项目: yply/d2dlib
 internal void DestroyPen(D2DPen pen)
 {
     if (pen == null)
     {
         throw new ArgumentNullException(nameof(pen));
     }
     D2D.DestroyPen(pen.Handle);
 }
示例#2
0
 public void DrawRectangle(D2DRect rect, D2DPen strokePen, FLOAT strokeWidth = 1)
 {
     D2D.DrawRectangleWithPen(this.Handle, ref rect, strokePen.Handle, strokeWidth);
 }
示例#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);
 }
示例#4
0
 public void DrawPath(D2DGeometry path, D2DPen strokePen, FLOAT strokeWidth = 1f)
 {
     D2D.DrawPathWithPen(path.Handle, strokePen.Handle, strokeWidth);
 }