IDS peak ICV v1.6.0
Loading...
Searching...
No Matches
SizeF Class Reference
Inheritance diagram for SizeF:

Public Member Functions

 SizeF ()
 Initializes a new instance of the SizeF class with default values (0.0f, 0.0f).
 
 SizeF (float width, float height)
 Initializes a new instance of the SizeF class with specified floating-point width and height.
 
new SizeF 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 floating-point width and height values.

Since
IDSImaging.Peak.Common 1.3

Constructor & Destructor Documentation

◆ SizeF() [1/2]

SizeF ( )
inline

Initializes a new instance of the SizeF class with default values (0.0f, 0.0f).

◆ SizeF() [2/2]

SizeF ( float width,
float height )
inline

Initializes a new instance of the SizeF class with specified floating-point width and height.

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

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.

◆ GetHashCode()

override int GetHashCode ( )
inlineinherited

Returns a hash code for the current size.

◆ ToString()

override string ToString ( )
inlineinherited

Returns a string representation of the size.

Returns
A string that represents the current size.

◆ Transposed()

new SizeF Transposed ( )

Property Documentation

◆ Height

T Height
getinherited

Gets the height of the size.

◆ Width

T Width
getinherited

Gets the width of the size.