'Declaration Public Overloads Sub Zoom( _ ByVal percentage As Double, _ ByVal relativeTo As Point _ )
'Usage Dim instance As Zoombox Dim percentage As Double Dim relativeTo As Point instance.Zoom(percentage, relativeTo)
public void Zoom( double percentage, Point relativeTo )
Parameters
- percentage
- The percentage amount by which to scale the content. A positive percentage value will cause the content to scale up (zoom in) and a negative percentage value will cause the content to scale down (zoom out). A value of -20.0, for example, will cause the content to scale down (zoom out) 20%.
- relativeTo
- The point that will serve as the anchor for the zoom operation. It will remain stationary as the content scales around it. The supplied point must be specified in the coordinate space of the content.