webmaster442.windowsterminal.size - webmaster442/WindowsTerminal GitHub Wiki

< Back


Size

Namespace: Webmaster442.WindowsTerminal

Represents an image Size

public struct Size

Inheritance ObjectValueTypeSize Implements IEquatable<Size> Attributes IsReadOnlyAttribute

Properties

Width

Image Width

public int Width { get; }

Property Value

Int32

Height

Image Height

public int Height { get; }

Property Value

Int32

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

String

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

Int32

Equals(Object)

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(Size)

bool Equals(Size other)

Parameters

other Size

Returns

Boolean


< Back