コード例 #1
0
ファイル: DUIGraphics_D2D.cs プロジェクト: scjjcs/DirectUI
 public void DrawRoundedRectangle(DUIPen pen, float x, float y, float width, float height, float radius)
 {
     pen.RenderTarget = this.target;
     if (pen.IsDefaultStyleProperties)
     {
         this.target.RenderTarget.DrawRoundedRectangle(DxConvert.ToRoundRectF(x, y, width, height, radius), pen, pen.Width);
     }
     else
     {
         this.target.RenderTarget.DrawRoundedRectangle(DxConvert.ToRoundRectF(x, y, width, height, radius), pen, pen.Width, pen);
     }
 }
コード例 #2
0
ファイル: DUIGraphics_D2D.cs プロジェクト: scjjcs/DirectUI
 public void FillRoundedRectangle(DUIBrush brush, float x, float y, float width, float height, float radius)
 {
     brush.RenderTarget = this.target;
     this.target.RenderTarget.FillRoundedRectangle(DxConvert.ToRoundRectF(x, y, width, height, radius), brush);
 }