Table of Contents

Method DrawRectangle

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.Core.dll

DrawRectangle(IDeviceContext, Point2Float, SizeFloat, IDeviceBrush, float, IStrokeStyle?)

public static void DrawRectangle(this IDeviceContext deviceContext, Point2Float location, SizeFloat size, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)

Parameters

deviceContext IDeviceContext
location Point2Float
size SizeFloat
brush IDeviceBrush
strokeWidth float
strokeStyle IStrokeStyle

DrawRectangle(IDeviceContext, float, float, SizeFloat, IDeviceBrush, float, IStrokeStyle?)

public static void DrawRectangle(this IDeviceContext deviceContext, float x, float y, SizeFloat size, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)

Parameters

deviceContext IDeviceContext
x float
y float
size SizeFloat
brush IDeviceBrush
strokeWidth float
strokeStyle IStrokeStyle

DrawRectangle(IDeviceContext, Point2Float, float, float, IDeviceBrush, float, IStrokeStyle?)

public static void DrawRectangle(this IDeviceContext deviceContext, Point2Float location, float width, float height, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)

Parameters

deviceContext IDeviceContext
location Point2Float
width float
height float
brush IDeviceBrush
strokeWidth float
strokeStyle IStrokeStyle

DrawRectangle(IDeviceContext, float, float, float, float, IDeviceBrush, float, IStrokeStyle?)

public static void DrawRectangle(this IDeviceContext deviceContext, float x, float y, float width, float height, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)

Parameters

deviceContext IDeviceContext
x float
y float
width float
height float
brush IDeviceBrush
strokeWidth float
strokeStyle IStrokeStyle