IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
Size Class Reference
Inheritance diagram for Size:

Public Member Functions

 Size ()
 Initializes a new instance of the Size class with default values (0, 0).
 
 Size (uint width, uint height)
 Initializes a new instance of the Size class with specified integer width and height.
 
new Size Transposed ()
 
override bool Equals (object? obj)
 Determines whether the specified object is equal to the current SizeT<T>.
 
override int GetHashCode ()
 Returns a hash code for the current size.
 
override string ToString ()
 Returns a string representation of the size.
 

Properties

T Width [get]
 Gets the width of the size.
 
T Height [get]
 Gets the height of the size.
 

Detailed Description

Represents a size with integer width and height values.

Since
IDSImaging.Peak.Common 1.3

Definition at line 106 of file Size.cs.

Constructor & Destructor Documentation

◆ Size() [1/2]

Size ( )
inline

Initializes a new instance of the Size class with default values (0, 0).

Definition at line 111 of file Size.cs.

◆ Size() [2/2]

Size ( uint width,
uint height )
inline

Initializes a new instance of the Size class with specified integer width and height.

Parameters
widthThe width of the size.
heightThe height of the size.

Definition at line 121 of file Size.cs.

Member Function Documentation

◆ Equals()

override bool Equals ( object? obj)
inlineinherited

Determines whether the specified object is equal to the current SizeT<T>.

Parameters
objThe object to compare with the current size.
Returns
true if the objects are equal; otherwise, false.

Definition at line 49 of file Size.cs.

◆ GetHashCode()

override int GetHashCode ( )
inlineinherited

Returns a hash code for the current size.

Definition at line 82 of file Size.cs.

◆ ToString()

override string ToString ( )
inlineinherited

Returns a string representation of the size.

Returns
A string that represents the current size.

Definition at line 91 of file Size.cs.

◆ Transposed()

new Size Transposed ( )

Property Documentation

◆ Height

T Height
getinherited

Gets the height of the size.

Definition at line 42 of file Size.cs.

◆ Width

T Width
getinherited

Gets the width of the size.

Definition at line 37 of file Size.cs.