IGxGraphics.SetScale

Syntax

SetScale(X: Double, Y: Double);

Parameters

X. Scale by the X axis.

Y. Scale by the Y axis.

Description

The SetScale method sets the scale of the graphic image.

Comments

When the X and Y values are specified, the scale is multiplied by the corresponding values, that is, if 2 is specified as parameter values, the image scale will be increased two times or by 100%. To decrease the scale, specify values less than 1 as parameter values.

Note that this method changes the scale relative to the already set scale and not relative to the image basic scale. That is why after the scale is changed two times, specify 0.5 instead of 1 to restore the image original scale. To restore image basic settings, one can also use the ResetTransform method.

Example

The example of use is given in description of the IGxGraphics.SaveState method.

See also:

IGxGraphics