PCamera.AnimateViewToPanToBounds Method 

Pan the camera's view from its current matrix when the activity starts to a new matrix so that the view bounds will contain (if possible, intersect if not possible) the new bounds in the camera layers' coordinate system.

public virtual PTransformActivity AnimateViewToPanToBounds(
   RectangleF panToBounds,
   long duration


The amount of time that the animation should take.

Return Value

The newly scheduled activity, if the duration is greater than 0; else null.


If the duration is 0 then the view will be transformed immediately, and null will be returned. Else a new PTransformActivity will get returned that is set to animate the camera’s view matrix to the new bounds.

See Also

PCamera Class | UMD.HCIL.Piccolo Namespace