Magnifies the rectangle.




XRect.Magnify X, Y



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




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.




The following code.

Set rc = Server.CreateObject("ABCpdf13.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