ShopToolsUtilResizeArea Method

Return a rectangle of the specified size ratio that perfectly fits into the caller's space.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
public static Size ResizeArea(
	int targetWidth,
	int targetHeight,
	float widthToHeightRatio
)

Parameters

targetWidth  Int32
The width of the target area to cover.
targetHeight  Int32
The height of the target area to cover.
widthToHeightRatio  Single
The Width to Height ratio of the new rectangle.

Return Value

Size
Size of the rectangle that will tightly fit into the specified area with the given width to height ratio.

See Also