4D v13SVG_New_image |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13
SVG_New_image
SVG_New_image
The SVG_New_image command can be used to reference a picture at the url address in the SVG container designated by parentSVGObject and returns its reference. If parentSVGObject is not an SVG document, an error is generated. The url parameter specifies the location of the picture and can take several forms:
The optional x and y parameters can be used to specify the position of the upper left corner of the picture in the SVG containers (default value 0). The width and height parameters specify the size of the rectangle in which the picture will be displayed and thus determine the size and aspect ratio of the picture. These parameter are only optional in the case of a picture referenced by a relative path in the Resources folder of the host database. If width and/or height equal 0 then the picture is not rendered. Place the ‘logo4D.png’ picture located in the ‘Pictures’ folder of the ‘Resources’ folder: svgRef:=SVG_New Place the ‘4dlogo.gif’ picture that can be accessed in the ’pictures’ directory of the ‘4d.com’ site: svgRef:=SVG_New |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: Composant 4D SVG v11.3 SEE ALSO
SVG_New_embedded_image |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||