ShopToolsUtilResizeArea Method
Return a rectangle of the specified size ratio that perfectly fits
into the caller's space.
Namespace: ShopToolsAssembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
public static Size ResizeArea(
int targetWidth,
int targetHeight,
float widthToHeightRatio
)
Public Shared Function ResizeArea (
targetWidth As Integer,
targetHeight As Integer,
widthToHeightRatio As Single
) As Size
No code example is currently available or this language may not be supported.
- 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.
Size
Size of the rectangle that will tightly fit into the specified
area with the given width to height ratio.