webmaster442.windowsterminal.fragments.terminalbackgroundimagestretchmode - webmaster442/WindowsTerminal GitHub Wiki

< Back


TerminalBackgroundImageStretchMode

Namespace: Webmaster442.WindowsTerminal.Fragments

This sets how the background image is resized to fill the window.

public enum TerminalBackgroundImageStretchMode

Inheritance ObjectValueTypeEnumTerminalBackgroundImageStretchMode Implements IComparable, ISpanFormattable, IFormattable, IConvertible Attributes JsonConverterAttribute

Fields

Name Value Description
None 0 The image is not resized.
Fill 1 The image is resized to fill the destination dimensions. The aspect ratio is not preserved.
Uniform 2 The image is resized to fit in the destination dimensions while it preserves its native aspect ratio.
UniformToFill 3 The image is resized to fill the destination dimensions while it preserves its native aspect ratio. If the aspect ratio of the destination rectangle differs from the source, the source content is clipped to fit in the destination dimensions.

< Back