Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Geometry 2D Spatial Transforms » RescaleRectangle


Changes the corners and the dimensions of a rectangle.

Name Type Description
inRectangle Rectangle2D
inReferencePoint Point2D* The point, to which all distance will be changed proportionally
inScale Real Scaling factor
inInverse Bool Switches to the inverse operation
outRectangle Rectangle2D


RescaleRectangle performed on the sample rectangle, inReferencePoint = (0.0, 0.0), inScale = 2.0 and inInverse = false.


This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError inScale cannot be zero in inverse operation in RescaleRectangle.

Complexity Level

This filter is available on Basic Complexity Level.