PdfSharp.Drawing.XGraphics.DrawRoundedRectangle C# (CSharp) Method

DrawRoundedRectangle() public method

Draws a rectangles with round corners.
public DrawRoundedRectangle ( XBrush brush, Rect rect, System ellipseSize ) : void
brush XBrush
rect Rect
ellipseSize System
return void
    public void DrawRoundedRectangle(XBrush brush, Rect rect, System.Windows.Size ellipseSize)
    {
      DrawRoundedRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height, ellipseSize.Width, ellipseSize.Height);
    }
#endif

Same methods

XGraphics::DrawRoundedRectangle ( XBrush brush, Rectangle rect, System ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XBrush brush, RectangleF rect, SizeF ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XBrush brush, XRect rect, XSize ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight ) : void
XGraphics::DrawRoundedRectangle ( XBrush brush, int x, int y, int width, int height, int ellipseWidth, int ellipseHeight ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, Rect rect, System ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, Rectangle rect, System ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, RectangleF rect, SizeF ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, XBrush brush, Rect rect, System ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, XBrush brush, Rectangle rect, System ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, XBrush brush, RectangleF rect, SizeF ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, XBrush brush, XRect rect, XSize ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, XBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, XBrush brush, int x, int y, int width, int height, int ellipseWidth, int ellipseHeight ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, XRect rect, XSize ellipseSize ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight ) : void
XGraphics::DrawRoundedRectangle ( XPen pen, int x, int y, int width, int height, int ellipseWidth, int ellipseHeight ) : void

Usage Example

Ejemplo n.º 1
1
    void RenderRoundedRectangles(XGraphics gfx)
    {
      gfx.TranslateTransform(15, 20);

      XPen pen = new XPen(XColors.RoyalBlue, Math.PI);

      gfx.DrawRoundedRectangle(pen, 10, 0, 100, 60, 30, 20);
      gfx.DrawRoundedRectangle(XBrushes.Orange, 130, 0, 100, 60, 30, 20);
      gfx.DrawRoundedRectangle(pen, XBrushes.Orange, 10, 80, 100, 60, 30, 20);
      gfx.DrawRoundedRectangle(pen, XBrushes.Orange, 150, 80, 60, 60, 20, 20);
    }
All Usage Examples Of PdfSharp.Drawing.XGraphics::DrawRoundedRectangle