webmaster442.windowsterminal.size - webmaster442/WindowsTerminal GitHub Wiki
Size
Namespace: Webmaster442.WindowsTerminal
Represents an image Size
public struct Size
Inheritance Object → ValueType → Size Implements IEquatable<Size> Attributes IsReadOnlyAttribute
Properties
Width
Image Width
public int Width { get; }
Property Value
Height
Image Height
public int Height { get; }
Property Value
Constructors
Size(Int32, Int32)
Creates a new Size instance with the specified width and height.
Size(int width, int height)
Parameters
width
Int32
width
height
Int32
height
Methods
ToString()
string ToString()
Returns
GetSize(Size, Size, SizeMode)
Calculates the size of an image based on the maximum size, image size, and size mode.
Size GetSize(Size maxSize, Size imageSize, SizeMode sizeMode)
Parameters
maxSize
Size
Maximum avaliable size
imageSize
Size
Image size
sizeMode
SizeMode
Size mode
Returns
Size A final, calculated size
GetHashCode()
int GetHashCode()
Returns
Equals(Object)
bool Equals(object obj)
Parameters
obj
Object
Returns
Equals(Size)
bool Equals(Size other)
Parameters
other
Size