Size
Overview
Size is a struct in Aspose.Psd FOSS for .NET.
Inherits from: IEquatable<Size>.
Represents an ordered pair of integer width and height values that defines a size.
This struct declares 5 methods for Size objects in .NET programs.
Available methods include: Equals, GetHashCode, Size, ToString.
Public members are accessible to any .NET application after installing the Aspose.Psd FOSS for .NET package.
Properties: Empty, Height, IsEmpty, Width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Width | int | Read/Write | Gets or sets the width component of this Size. |
Height | int | Read/Write | Gets or sets the height component of this Size. |
IsEmpty | bool | Read | Gets a value indicating whether this Size has width and height left uninitialized. |
Empty | Size | Read | Represents a Size with width and height left uninitialized. |
Methods
| Signature | Description |
|---|---|
Size(width: int, height: int) | Initializes a new instance of the Size structure with the specified dimensions. |
Equals(other: Size) | Determines whether the specified size is equal to this size. |
Equals(obj: object?) | Determines whether the specified object is equal to this size. |
GetHashCode() | Returns a hash code for this size. |
ToString() | Returns a compact size representation. |