Piccolo.NET

PNode.AnimateMatrixToBounds Method 

Animate this node from it's current matrix when the activity starts a new matrix that will fit the node into the given bounds.

public PTransformActivity AnimateMatrixToBounds(
   float x,
   float y,
   float width,
   float height,
   long duration
);

Parameters

x
The x coordinate of the target bounds.
y
The y coordinate of the target bounds.
width
The width of the target bounds.
height
The height of the target bounds.
duration
The amount of time that the animation should take.

Return Value

The newly scheduled activity.

Remarks

If this node descends from the root then the activity will be scheduled, else the returned activity should be scheduled manually. If two different transform activities are scheduled for the same node at the same time, they will both be applied to the node, but the last one scheduled will be applied last on each frame, so it will appear to have replaced the original. Generally you will not want to do that. Note this method animates the node's matrix, but does not directly change the node's bounds rectangle. Use AnimateToBounds to animate the node's bounds rectangle instead.

See Also

PNode Class | UMD.HCIL.Piccolo Namespace


Web Accessibility