SVG_SET_TRANSFORM_SCALE

4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next

version 11.3


SVG_SET_TRANSFORM_SCALE (svgObject; scaleX{; scaleY})

ParameterTypeDescription
svgObjectSVG_RefReference of SVG element
scaleXNumberValue on X axis
scaleYNumberValue on Y axis

Description

The SVG_SET_TRANSFORM_SCALE command applies a change of horizontal and/or vertical scale to an SVG object having the svgObject reference.

If the scaleX value is not null, the object is enlarged (value >1) or reduced (value < 1) horizontally for the number of units passed. The value 1 is equal to no change to the object scale.

If the scaleY parameter is provided, the object is enlarged (value >1) or reduced (value < 1) vertically for the number of units passed. The value 1 is equal to no change to the object scale. If this parameter is omitted, its value is supposed to be equal to scaleX.

Example

   svgRef := SVG_New 
   $Text:=SVG_New_text ($SVG;"Hello world!";5)
   SVG_SET_TRANSFORM_SCALE ($Text;3;12)  `Zoom x*3 y*12

See Also

SVG_SET_TRANSFORM_MATRIX.


4D - Documentation   Français   English   German   4D SVG Component, Command Theme List   4D SVG Component, Index   Back   Previous   Next