-
Notifications
You must be signed in to change notification settings - Fork 2
BizArk.Core.Extensions.DrawingExt
Brian Brewder edited this page Apr 1, 2017
·
1 revision
Back to BizArk.Core API Reference
Extensions for classes within the Drawing namespace.
-
public static Size ResizeMin(this Size sz, Size min)- Proportionally resizes a Size structure so that it is no smaller than the min size. -
public static Size ResizeMin(this Size sz, int width, int height)- Proportionally resizes a Size structure so that it is no smaller than the min size. -
public static Size ResizeMax(this Size sz, Size max)- Proportionally resizes a Size structure so that it is no larger than the max size. -
public static Size ResizeMax(this Size sz, int width, int height)- Proportionally resizes a Size structure so that it is no larger than the max size. -
public static Size ResizeOverflow(this Size sz, Size max)- Proportionally resizes a Size structure so that at least one side is no larger than the max size. -
public static Size ResizeOverflow(this Size sz, int width, int height)- Proportionally resizes a Size structure so that at least one side is no larger than the max size. -
public static Rectangle Position(this Rectangle rect, Rectangle parent, PositionStyle style)- Changes the coordinates for the rectangle. -
public static Point Position(this Size sz, Rectangle parent, PositionStyle style)- Gets the location to place an object of the given size within a parent area. -
public static void SetTop(this Rectangle rect, int top)- Sets the Top property. -
public static void SetLeft(this Rectangle rect, int left)- Sets the Left property. -
public static void SetRight(this Rectangle rect, int right)- Sets the Right property. -
public static void SetBottom(this Rectangle rect, int bottom)- Sets the bottom property. -
public static string ToMemSize(this long numBytes)- Gets a string that represents the number of bytes. -
public static MemSize SizeOf(this Image img)- Gets the number of bytes for an image.