public class Size extends com.aspose.ms.lang.Struct<Size>
Represents size.
Constructor and Description |
---|
Size() |
Size(int width,
int height)
Initializes a new instance of the
Size structure from the specified dimensions. |
Size(Point point)
|
Modifier and Type | Method and Description |
---|---|
static Size |
add(Size size1,
Size size2)
|
static Size |
ceiling(SizeF size)
|
Object |
clone() |
Size |
Clone() |
void |
CloneTo(Size that) |
boolean |
equals(Object obj)
|
static Size |
getEmpty()
Gets a new instance of the
Size structure that has Aspose.PSD.Size.Width (Size.getWidth() /Size.setWidth(int) ) and Aspose.PSD.Size.Height (Size.getHeight() /Size.setHeight(int) ) values set to zero. |
int |
getHeight()
Gets or sets the vertical component of this
Size . |
int |
getWidth()
Gets or sets the horizontal component of this
Size . |
int |
hashCode()
Returns a hash code for this
Size structure. |
boolean |
isEmpty()
Gets a value indicating whether this
Size has width and height of 0. |
static Size |
op_Addition(Size size1,
Size size2)
|
static boolean |
op_Equality(Size size1,
Size size2)
Tests whether two
Size structures are equal. |
static boolean |
op_Inequality(Size size1,
Size size2)
Tests whether two
Size structures are different. |
static Size |
op_Subtraction(Size size1,
Size size2)
|
static Size |
round(SizeF size)
|
void |
setHeight(int value)
Gets or sets the vertical component of this
Size . |
void |
setWidth(int value)
Gets or sets the horizontal component of this
Size . |
static Size |
subtract(Size size1,
Size size2)
|
static Point |
to_Point(Size size)
|
static SizeF |
to_SizeF(Size size)
|
String |
toString()
Creates a human-readable string that represents this
Size . |
static Size |
truncate(SizeF size)
|
public static Size getEmpty()
Gets a new instance of the Size
structure that has Aspose.PSD.Size.Width
(Size.getWidth()
/Size.setWidth(int)
) and Aspose.PSD.Size.Height
(Size.getHeight()
/Size.setHeight(int)
) values set to zero.
public final boolean isEmpty()
Gets a value indicating whether this Size
has width and height of 0.
public final int getWidth()
Gets or sets the horizontal component of this Size
.
public final void setWidth(int value)
Gets or sets the horizontal component of this Size
.
public final int getHeight()
Gets or sets the vertical component of this Size
.
public final void setHeight(int value)
Gets or sets the vertical component of this Size
.
public static boolean op_Equality(Size size1, Size size2)
Tests whether two Size
structures are equal.
public static boolean op_Inequality(Size size1, Size size2)
Tests whether two Size
structures are different.
public boolean equals(Object obj)
public int hashCode()
Returns a hash code for this Size
structure.
public void CloneTo(Size that)
CloneTo
in class com.aspose.ms.System.ValueType<Size>
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.