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 2 methods for RectangleF objects in Python programs. Available methods include: __init__, 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.
empty() → "RectangleF"Represents a RectangleF structure with its properties left uninitialized.

See Also