4D v14

SVG_SET_TRANSFORM_SCALE

Home

 
4D v14
SVG_SET_TRANSFORM_SCALE

SVG_SET_TRANSFORM_SCALE 


 

SVG_SET_TRANSFORM_SCALE ( svgObject ; scaleX {; scaleY} ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
scaleX  Real in Value on X axis
scaleY  Real in Value on Y axis

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 (0 < 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 (0 < 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  

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

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65944

 
HISTORY 

Created: Composant 4D SVG v11.3

 
SEE ALSO 

SVG_SET_TRANSFORM_MATRIX

 
ARTICLE USAGE

4D SVG Component ( 4D v13)
4D SVG Component ( 4D v12)
4D SVG Component ( Composant 4D SVG v11.4)
4D SVG Component ( 4D v14 R2)
4D SVG Component ( 4D v14)
4D SVG Component ( 4D v14 R3)
4D SVG Component ( 4D v14 R4)