SetZoom

All Editions  image\bltlrgss.gif Related Transactions image\bltlrgss.gif Example

The SetZoom transaction scales an image to the specified level.

Type XTYP_EXECUTE

Syntax [SetZoom(docwinID, zoomLevel, <scaleFactor>, <xCenter, yCenter>)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

zoomLevel

WORD

1

magnify by one zoom step

 

 

2

reduce by one zoom step

 

 

3

scale to fit

 

 

4

horizontal fit

 

 

5

vertical fit

 

 

6

display at actual size

 

 

8

display at 1-to-1 scaling

 

 

9 | 10

custom 1 | 2. See Remarks.

scaleFactor

float

specific scale factor. See Remarks.

xCenter

DWORD

x coordinate of center of scaling

yCenter

DWORD

y coordinate of center of scaling. See Remarks.

Remarks

If the zoomLevel value is 9 or 10, you must use the scaleFactor parameter, and you may use the xCenter and yCenter. If the zoomLevel value is 1 - 8, the last three parameters are optional and will be ignored if used.

Release information

Added in Release 3.40.

See also