Skip to content
CShift0.45

Scaling

Enum · namespace System.Graphics · Since 0.45

enum Scaling : int32

How Window.ShowScaled fits a picture into the window. The picture keeps its pixels sharp (every pixel becomes a block of pixels); the rest of the window is black.

Value Number Description
Integer 0 The largest whole factor that fits (2x, 3x, …): all pixels the same size.
Fit 1 As large as fits, keeping the proportions.
Stretch 2 The whole window, proportions or not.