/// <summary> /// Paints the interior of the specified rounded rectangle</summary> /// <param name="roundedRect">The dimensions of the rounded rectangle to paint, in pixels</param> /// <param name="brush">The brush used to paint the interior of the rounded rectangle</param> public void FillRoundedRectangle(D2dRoundedRect roundedRect, D2dBrush brush) { var tmp = roundedRect.ToSharpDX(); m_renderTarget.FillRoundedRectangle(ref tmp, brush.NativeBrush); }
/// <summary> /// Draws the outline of the specified rounded rectangle</summary> /// <param name="roundedRect">The dimensions of the rounded rectangle to draw, in pixels</param> /// <param name="brush">The brush used to paint the rounded rectangle's outline</param> /// <param name="strokeWidth">The width of the rounded rectangle's stroke. The stroke is centered on the /// rounded rectangle's outline.</param> /// <param name="strokeStyle">The style of the rounded rectangle's stroke, or null to paint a solid stroke</param> public void DrawRoundedRectangle(D2dRoundedRect roundedRect, D2dBrush brush, float strokeWidth = 1.0f, D2dStrokeStyle strokeStyle = null) { m_renderTarget.DrawRoundedRectangle(roundedRect.ToSharpDX(), brush.NativeBrush, strokeWidth, strokeStyle != null ? strokeStyle.NativeStrokeStyle : null); }