4D v14

SVG_SET_XY

Home

 
4D v14
SVG_SET_XY

SVG_SET_XY 


 

SVG_SET_XY ( svgObject ; x {; y} ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
Longint in Coordinate on X axis
Longint in Coordinate on Y axis

The SVG_SET_XY command can be used to set the coordinates of the top left corner of the rectangular area where the SVG object having the svgObject reference is placed. If these attributes already exist, their values are replaced by those passed as parameters. If svgObject is an SVG element that does not accept this attribute, an error is generated.

The values are expected in the user coordinate system.

Example  

 $svg :=SVG_New `Create a new document
 $object:=SVG_New_image($svg;"#Pictures/logo4D.png") `Place the logo
 SVG_SET_XY($object;10;40) `Modify the position of the picture

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65937

 
HISTORY 

Created: Composant 4D SVG v11.3

 
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)