UtilDrawingResolutionIsOfAspectRatio(Size, Point) Method
Determine whether the source resolution belongs to the specified aspect ratio.
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 bool ResolutionIsOfAspectRatio(
Size resolution,
Point aspectRatio
)
Public Shared Function ResolutionIsOfAspectRatio (
resolution As Size,
aspectRatio As Point
) As Boolean
Dim resolution As Size
Dim aspectRatio As Point
Dim returnValue As Boolean
returnValue = UtilDrawing.ResolutionIsOfAspectRatio(resolution,
aspectRatio)
public:
static bool ResolutionIsOfAspectRatio(
Size resolution,
Point aspectRatio
)
static member ResolutionIsOfAspectRatio :
resolution : Size *
aspectRatio : Point -> bool
No code example is currently available or this language may not be supported.
- resolution Size
-
The source resolution.
- aspectRatio Point
-
The aspect ratio.
Boolean if the source resolution belongs to the specified aspect ratio; otherwise,
.
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 New Point(x:=16, y:=9)
Dim result As Boolean = ResolutionIsOfAspectRatio(resolution, aspectRatio)
Console.WriteLine(result)
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.