Struct ScalingMode
sealed struct ScalingMode
Defines Aspect ratio behavior of buffers while being presented on
screen using MediaSurface.
Fields
Constants
PRESERVE
Shows buffer with the same dimensions.ScalingMode={1}
FIT_TO_DST_RECT
Scales buffer to match size of the window.ScalingMode={2}
SCALED
Scales buffer based on the target rect.ScalingMode={3}
FIT_TO_DST_RECT_ASPECT_RATIO
Scales buffer to the window size while keeping aspect ratio & center position. Source buffer will not be cropped.ScalingMode={4}
NONE
Not specified.ScalingMode={5}
BEST_FILL
The buffer size is scaled to a rectangle as large as possible without showing any outside of buffer, keep aspect and center position.ScalingMode={6}
STRETCH_DST_RECT_ASPECT_RATIO
Scales buffer to fit in window, initially without cropping. Scaling up beyond the bounds of the window will stretch the dst rect and excess is cropped down to window bounds. Aspect ratio and center position are maintained.ScalingMode={7}

