Table of Contents

Method Round

Namespace
PaintDotNet.Rendering
Assembly
PaintDotNet.Primitives.dll

Round(SizeDouble, MidpointRounding)

public static SizeInt32 Round(SizeDouble size, MidpointRounding mode = MidpointRounding.AwayFromZero)

Parameters

size SizeDouble
mode MidpointRounding

Returns

SizeInt32

Round(SizeFloat, MidpointRounding)

public static SizeInt32 Round(SizeFloat size, MidpointRounding mode = MidpointRounding.AwayFromZero)

Parameters

size SizeFloat
mode MidpointRounding

Returns

SizeInt32