UtilDrawingGetAspectRatio(Int32, Int32) Method
Calculate the aspect ratio of the source resolution.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Point GetAspectRatio(
int width,
int height
)
Public Shared Function GetAspectRatio (
width As Integer,
height As Integer
) As Point
Dim width As Integer
Dim height As Integer
Dim returnValue As Point
returnValue = UtilDrawing.GetAspectRatio(width,
height)
public:
static Point GetAspectRatio(
int width,
int height
)
static member GetAspectRatio :
width : int *
height : int -> Point
No code example is currently available or this language may not be supported.
- width Int32
-
The resolution width.
- height Int32
-
The resolution height.
Point
The resulting aspect ratio, expressed as X:Y.
This is a code example.
No code example is currently available or this language may not be supported.
Dim width As Integer = 1920
Dim height As Integer = 1080
Dim aspectRatio As Point = GetAspectRatio(width, height)
Console.WriteLine(aspectRatio.ToString())
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.