Piccolo.NET

PPath.InternalUpdateBounds Method 

Overridden. Set the bounds of this path.

protected override void InternalUpdateBounds(
   float x,
   float y,
   float width,
   float height
);

Parameters

x
The new x-coordinate of the bounds/
y
The new y-coordinate of the bounds.
width
The new width of the bounds.
height
The new height of the bounds.

Return Value

True if the bounds have changed; otherwise, false.

Remarks

This works by scaling the path to fit into the specified bounds. This normally works well, but if the specified base bounds get too small then it is impossible to expand the path shape again since all its numbers have tended to zero, so application code may need to take this into consideration.

See Also

PPath Class | UMD.HCIL.Piccolo.Nodes Namespace