Public Member Functions | |
ASPOSECPP_SHARED_API | Size () |
Constructs a new Size object and initializes its width and height values with 0. More... | |
ASPOSECPP_SHARED_API | Size (const Point &point) |
ASPOSECPP_SHARED_API | Size (int width, int height) |
bool | get_IsEmpty () const |
int | get_Width () const |
Returns the value of width represented by the current object. More... | |
int | get_Height () const |
Returns the value of heght represented by the current object. More... | |
void | set_Width (int value) |
void | set_Height (int value) |
ASPOSECPP_SHARED_API bool | Equals (const Size &size) const |
ASPOSECPP_SHARED_API String | ToString () const |
ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Returns a hash code for the current object. More... | |
ASPOSECPP_SHARED_API | operator SizeF () const |
ASPOSECPP_SHARED_API | operator Point () const |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API Size | Add (const Size &size1, const Size &size2) |
static ASPOSECPP_SHARED_API Size | Subtract (const Size &size1, const Size &size2) |
static ASPOSECPP_SHARED_API Size | Ceiling (const SizeF &size) |
static ASPOSECPP_SHARED_API Size | Truncate (const SizeF &size) |
static ASPOSECPP_SHARED_API Size | Round (const SizeF &size) |
Static Public Attributes | |
static ASPOSECPP_SHARED_API const Size | Empty |
An empty instance of Size class whose width and height values are 0. More... | |
Friends | |
ASPOSECPP_SHARED_API Size | operator+ (const Size &size1, const Size &size2) |
ASPOSECPP_SHARED_API Size | operator- (const Size &size1, const Size &size2) |
ASPOSECPP_SHARED_API bool | operator== (const Size &size1, const Size &size2) |
ASPOSECPP_SHARED_API bool | operator!= (const Size &size1, const Size &size2) |
Represents a pair of integer values that represent width and height of an image. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
ASPOSECPP_SHARED_API System::Drawing::Size::Size | ( | ) |
Constructs a new Size object and initializes its width and height values with 0.
ASPOSECPP_SHARED_API System::Drawing::Size::Size | ( | const Point & | point | ) |
ASPOSECPP_SHARED_API System::Drawing::Size::Size | ( | int | width, |
int | height | ||
) |
Constructs a new Size object and initializes it with the specified value.
width | The value to width |
height | The value of height |
|
static |
Returns a new Size object that is a sum of the specified Size object, i.e. whose width value is equal to the sum of width values of the specified objects and height value is equal to the sum of height values of the specified objects.
size1 | The first operand |
size2 | The second operand |
size1
and size2
ASPOSECPP_SHARED_API bool System::Drawing::Size::Equals | ( | const Size & | size | ) | const |
Determines if the current object and the specified object are equal, i.e. represent the same pair of width and hegiht values.
size | The object to compare the current object with |
|
inline |
Returns the value of heght represented by the current object.
|
inline |
Determines if both width and hegiht values are equal to 0.
|
inline |
Returns the value of width represented by the current object.
ASPOSECPP_SHARED_API int32_t System::Drawing::Size::GetHashCode | ( | ) | const |
Returns a hash code for the current object.
ASPOSECPP_SHARED_API System::Drawing::Size::operator Point | ( | ) | const |
Constructs an instance of Point object and initializes its X and Y coordinate with the current object's width and height values correspondingly.
ASPOSECPP_SHARED_API System::Drawing::Size::operator SizeF | ( | ) | const |
|
inline |
Sets the value of height represented by the current object.
value | The value to set |
|
inline |
Sets the value of width represented by the current object.
value | The value to set |
|
static |
Returns a new Size object that is the results of subctraction of size2
from size1
, i.e. whose width value is the result of subtraction of size2's
width value from size1's
width value and height value is the result of subtraction of size2's
height value from size1's
height value.
size2
from size1
ASPOSECPP_SHARED_API String System::Drawing::Size::ToString | ( | ) | const |
Returns the string representation of the pair of width and hegiht values represented by the current object.
Determines the inequality of two Size objects by comparing their corresponding width and height values.
size1 | The first comparand |
size2 | The second comparand |
size1
and size2
are not equal, otherwise - false Returns a new Size object that is a sum of the specified Size object, i.e. whose width value is equal to the sum of width values of the specified objects and height value is equal to the sum of height values of the specified objects.
size1 | The first operand |
size2 | The second operand |
size1
and size2
Returns a new Size object that is the results of subctraction of size2
from size1
, i.e. whose width value is the result of subtraction of size2's
width value from size1's
width value and height value is the result of subtraction of size2's
height value from size1's
height value.
size2
from size1
Determines the equality of two Size objects by comparing their corresponding width and height values.
size1 | The first comparand |
size2 | The second comparand |
size1
and size2
are equal, otherwise - false