Magnifies the rectangle.

 

   

Syntax
 

XRect.Magnify X, Y

 

   

Params
 
Name Type Description
X Double The horizontal scale factor.
Y Double The vertical scale factor.

 

   

Notes
 

Scales the rectangle width and height by specified horizontal and vertical factors.

When you magnify a rectangle, one corner of the rectangle is pinned and the width and height of the rectangle adjusted. The corner which is pinned is indicated by the Pin property. The default pin corner is the bottom left.

 

   

Example
 

The following code.

Set rc = Server.CreateObject("ABCpdf10.XRect")
rc.String = "20 20 220 120"
Response.Write "Rect = " & rc
Response.Write "<br>"
rc.Magnify 0.5, 0.5
Response.Write "Scale = " & rc

Produces the following output.

Rect = 20 20 220 120
Scale = 20 20 120 70