Graphisoft®

API Development KitVersion: 18

VectorImage::CalcAndGetBounds


Gives the bounding box of the VectorImage.


GSErrCode  CalcAndGetBounds (
    Box2DData* bounds,
    bool       withoutHotspots = false
);

Parameters

bounds
The bounding box of the VectorImage.
withoutHotspots
Decides if is the bounds includes the hotspots(default) or not.

Return value

If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.

Description

Recalculation necessary after adding or deleting elements. The scale changing will automatically update it.

Requirements

Version:API 10.0 or later, ModelerGraphics 8 or later
Library:ModelerGraphicsImp.lib (Win) or ModelerGraphics.framework (Mac)
Header:VectorImage.hpp