RectangleF

Overview

RectangleF is a class in Aspose.PSD FOSS for Python.

Stores a set of four floating-point numbers that represent the location and size of a rectangle.

This class declares 6 methods for RectangleF objects in Python programs. Available methods include: __eq__, __hash__, __init__, __ne__, __str__, empty. Public members are accessible to any Python application after installing the Aspose.PSD FOSS for Python package. Properties: Height, Width, X, Y, bottom, height, and 7 more.

Properties

NameTypeAccessDescription
XfloatRead/WriteGets or sets the x-coordinate of the upper‑left corner.
YfloatRead/WriteGets or sets the y-coordinate of the upper‑left corner.
WidthfloatRead/WriteGets or sets the width of the rectangle.
HeightfloatRead/WriteGets or sets the height of the rectangle.
bottomfloatReadGets the y-coordinate of the bottom edge of this RectangleF.
is_emptyboolReadGets a value indicating whether this RectangleF has no location or size.
leftfloatReadGets the x-coordinate of the left edge of this RectangleF.
rightfloatReadGets the x-coordinate of the right edge of this RectangleF.
topfloatReadGets the y-coordinate of the top edge of this RectangleF.
x-ReadGets the x.
y-ReadGets the y.
width-ReadGets the width.
height-ReadGets the height.

Methods

SignatureDescription
__init__(x: float, y: float, width: float, height: float)Calls init(x, y, width, height) on this RectangleF instance.
__eq__(other: Any) → boolDetermines whether the specified rectangle is equal to this rectangle.
__ne__(other: Any) → boolDetermines whether two rectangles are not equal.
__hash__() → intReturns a hash code for this rectangle.
__str__() → strReturns a compact coordinate representation.
empty() → "RectangleF"Represents a RectangleF structure with its properties left uninitialized.

See Also

 English