ResizePage

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

The ResizePage transaction scales the data in the active raster layer of the specified document window using the specified parameters, creating a new raster of a different size. This is a change to the raster data, not just a display change. The result either is placed in a new window or overwrites the original, depending on the overwrite raster flag.

Type XTYP_EXECUTE or XTYP_REQUEST

Syntax [ResizePage(docwinID, scale, aspect)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

scale

float

scale multiplier

aspect

float

1.0

same aspect

 

 

other value

new aspect ratio. See Remarks.

Reply

Data type

Meaning

newDocwinID

DWORD

identifier of the window containing the resized image. See Remarks.

Remarks

This transaction currently works on the active raster layer only.

If the aspect ratio is not preserved, the new image may be distorted.

A reply is only returned if this transaction is set up as an XTYP_REQUEST. If the overwrite raster flag is set to on, newDocwinID is the original docwinID.

Release information

Added in Release 3.80.

See also

Overview: Improving raster images