Class DrawRectangleExtensions
Adds extensions that allow the drawing of rectangles to the
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class DrawRectangleExtensions
Methods
| Improve this Doc View SourceDraw(IImageProcessingContext, Color, Single, RectangleF)
Draws the outline of the rectangle with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, Color color, float thickness, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Color | color | The color. |
Single | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, DrawingOptions, Color, Single, RectangleF)
Draws the outline of the rectangle with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, Color color, float thickness, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
Color | color | The color. |
Single | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, DrawingOptions, IBrush, Single, RectangleF)
Draws the outline of the rectangle with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, IBrush brush, float thickness, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
IBrush | brush | The brush. |
Single | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, DrawingOptions, IPen, RectangleF)
Draws the outline of the rectangle with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, IPen pen, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
DrawingOptions | options | The options. |
IPen | pen | The pen. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, IBrush, Single, RectangleF)
Draws the outline of the rectangle with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, IBrush brush, float thickness, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IBrush | brush | The brush. |
Single | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |
Draw(IImageProcessingContext, IPen, RectangleF)
Draws the outline of the rectangle with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, IPen pen, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
IPen | pen | The pen. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The |