GetMaximumFontSize(graphics, fontFamily, text, style, allowWordWrapping, maxWidth, maxHeight) MakeSemitransparentImage(width, height, initGraphics, drawOpaqueLayer, drawTransparencyLayer, transparencyFromChannel, invertTransparency)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: void DrawRoundedRectangle(this Graphics, Pen, RectangleF, float, bool)Declarationpublic static void DrawRoundedRectangle(
this Graphics g,
Pen pen,
RectangleF rectangle,
float radius,
bool tolerant = false
) Summary
Draws a rounded rectangle. Parametersthis Graphics | g |
Graphics object to draw on. | Pen | pen |
Pen to use when drawing the rounded rectangle. | RectangleF | rectangle |
Position of the rectangle. | float | radius |
Radius of the rounding of each corner of the rectangle. | bool | tolerant |
If true, the radius is reduced if it is too large to fit into the specified size. Otherwise, an exception is
thrown. |
|