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