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); } }
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); }