Skip to content
Version 2.32.0
↓ Get the launcher

CaptureAspect structure

A photo shape as a width:height ratio of whole numbers, for example 9:16 (portrait) or 21:9 (wide).

public struct CaptureAspect : IEquatable<CaptureAspect>
parameter description
Width Ratio width (positive).
Height Ratio height (positive).
name description
CaptureAspect(…) A photo shape as a width:height ratio of whole numbers, for example 9:16 (portrait) or 21:9 (wide).
Height { get; set; } Ratio height (positive).
IsValid { get; } True when both sides are positive and the shape is within 1:4 … 4:1.
Ratio { get; } Width ÷ height (0 when Height is not positive).
Width { get; set; } Ratio width (positive).
override ToString() “9:16” style text.
const MaxRatio The longest ratio allowed: a shape may be at most 4 times as long as it is wide (1:4 … 4:1).