CaptureSizing.EffectiveScale method
The scale a window-shaped capture (no Aspect) really uses: 4× → 2× → 1× until the image fits the long-side limit (MaxLongSide, or a smaller maxTextureSize) and MaxPixels. Scale 1 is never lowered.
public static int EffectiveScale(int screenWidth, int screenHeight, int scale, int maxTextureSize = 16384)| parameter | description |
|---|---|
| screenWidth | Window width in pixels. |
| screenHeight | Window height in pixels. |
| scale | Requested scale (1, 2 or 4). |
| maxTextureSize | The GPU’s largest texture side; 0 or less = MaxLongSide. |
See Also
Section titled “See Also”- class CaptureSizing
- namespace Stellar.Abstractions.Domain