CaptureSizing.OutputSize method
The photo’s real size in pixels. No aspect = the window × the effective scale (EffectiveScale). With a shape: the LONG side is the window’s long side × scale and the short side follows the shape, rounded to an even pixel count (2× on 1920 × 1080: 9:16 = 2160 × 3840, 21:9 = 3840 × 1646). When that exceeds the long-side limit or MaxPixels, both sides shrink by the same factor until it fits (the shape is kept). An invalid shape or a non-positive window gives an empty size.
public static CaptureSize OutputSize(int screenWidth, int screenHeight, int scale, CaptureAspect? aspect, int maxTextureSize = 16384)| parameter | description |
|---|---|
| screenWidth | Window width in pixels. |
| screenHeight | Window height in pixels. |
| scale | Requested scale (1, 2 or 4). |
| aspect | The photo shape, or null for the window’s shape. |
| maxTextureSize | The GPU’s largest texture side; 0 or less = MaxLongSide. |
See Also
Section titled “See Also”- struct CaptureSize
- struct CaptureAspect
- class CaptureSizing
- namespace Stellar.Abstractions.Domain