This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SVG_SET_VIEWPORT_FILL
|
SVG_SET_VIEWPORT_FILL ( svgObject {; color {; opacity}} ) | ||||||||
Parameter | Type | Description | ||||||
svgObject | SVG_Ref |
![]() |
Reference of SVG element | |||||
color | String |
![]() |
Fill color | |||||
opacity | Longint |
![]() |
Percentage of opacity | |||||
The SVG_SET_VIEWPORT_FILL command can be used to set the background color of an SVG document having the svgObject reference.
If this attribute already exists, its value is replaced by the value passed as parameter. If svgObject is an SVG element that does not accept this attribute, an error is generated.
The optional color parameter indicates the color to be used for the picture background. If this parameter is omitted or contains an empty string, white will be used. For more information about colors, please refer to the SVG Colors section.
The optional opacity parameter can be used to specify the value of the percentage of opacity to be applied to this fill. If this parameter is omitted or if no opacity has been specified for the document, the value 100% is used.
Product: 4D
Theme: Attributes
Number:
705083
Created: Composant 4D SVG v11.3
4D SVG Component ( 4D v20 R7)