UtilDrawingGetAspectRatio(Size) 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(
Size resolution
)
Public Shared Function GetAspectRatio (
resolution As Size
) As Point
Dim resolution As Size
Dim returnValue As Point
returnValue = UtilDrawing.GetAspectRatio(resolution)
public:
static Point GetAspectRatio(
Size resolution
)
static member GetAspectRatio :
resolution : Size -> Point
No code example is currently available or this language may not be supported.
- resolution Size
-
The source resolution.
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 resolution As New Size(width:=1920, height:=1080)
Dim aspectRatio As Point = GetAspectRatio(resolution)
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.