Class DrawRectangleExtensions
Adds extensions that allow the drawing of rectangles.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class DrawRectangleExtensions
Methods
| Edit this page View SourceDraw(IImageProcessingContext, Color, float, 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 source image processing context. |
Color | color | The color. |
float | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, Brush, float, RectangleF)
Draws the outline of the rectangle with the provided brush at the provided thickness.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, Brush brush, float thickness, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Brush | brush | The brush. |
float | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, DrawingOptions, Color, float, 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 source image processing context. |
DrawingOptions | options | The options. |
Color | color | The color. |
float | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, DrawingOptions, Brush, float, 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, Brush brush, float thickness, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Brush | brush | The brush. |
float | thickness | The thickness. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, DrawingOptions, Pen, RectangleF)
Draws the outline of the rectangle with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, DrawingOptions options, Pen pen, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
DrawingOptions | options | The options. |
Pen | pen | The pen. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Draw(IImageProcessingContext, Pen, RectangleF)
Draws the outline of the rectangle with the provided pen.
Declaration
public static IImageProcessingContext Draw(this IImageProcessingContext source, Pen pen, RectangleF shape)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The source image processing context. |
Pen | pen | The pen. |
RectangleF | shape | The shape. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |