4D v14

SVG_SET_OPACITY

Home

 
4D v14
SVG_SET_OPACITY

SVG_SET_OPACITY 


 

SVG_SET_OPACITY ( svgObject ; background {; line} ) 
Parameter Type   Description
svgObject  SVG_Ref in Reference of SVG element
background  Longint in Opacity (%)
line  Longint in Opacity (%)

The SVG_SET_OPACITY command can be used to set the opacity of the filling and the line of the object having the svgObject reference. If these attributes already exist, their values are replaced by those passed as parameters.

The values expected must be included between 0 and 100.

Example  

 $svg :=SVG_New ` Create a new document
 $object:=SVG_New_rect($svg ;10;10;200;100;0;0;"red";"blue")
 SVG_SET_OPACITY($object;-1;50) `Set the line opacity to 50%

 
PROPERTIES 

Product: 4D
Theme: Attributes
Number: 65934

 
HISTORY 

Created: Composant 4D SVG v11.3

 
SEE ALSO 

SVG Colors

 
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)