4D v19SVG_Color_RGB_from_long | 
            ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
                 
                
  | 
                
			
                    
                         
    4D v19
 
SVG_Color_RGB_from_long 
                                
                                
        
 | 
                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SVG_Color_RGB_from_long ( Farbe {; Format} ) -> Funktionsergebnis | ||||||||
| Parameter | Typ | Beschreibung | ||||||
| Farbe | Lange Ganzzahl | 
             
         | 
        Value of color | |||||
| Format | Ganzzahl | 
             
         | 
        Format of color | |||||
| Funktionsergebnis | String | 
             
         | 
        Color string | |||||
The SVG_Color_RGB_from_long command returns a string expressing the color color passed as an argument. The string returned is in "RGB(red, green, blue)" form, the syntax recognized by SVG rendering engines.
The color parameter is a 4-byte longint whose format (0x00RRGGBB) is described below (the bytes are numbered from 0 to 3, from right to left):
| Byte | Description | 
| 2 | Red component of the color (0..255) | 
| 1 | Green component of the color (0..255) | 
| 0 | Blue component of the color (0..255) | 
The optional format parameter can be used to specify the desired format for the color string returned. The values are:
| Value | Format | 
| 1 (default) | rgb(r,g,b) | 
| 2 | #rgb | 
| 3 | #rrggbb | 
| 4 | rgb(r%, g%, b%) | 
 $txtColor:=SVG_Color_RGB_from_long($color)
  `$txtColor is "rgb(255,128,0)" if $color is 16744448 (orange)
	Produkt: 4D
	Thema: Colors and Gradients
	Nummer: 
        65925
        
        
        
	
	Erstellt: Composant 4D SVG v11.3
	4D SVG ( 4D v19)
	
	
	
	
	
	
	
	
	
	
	
	
Fehler melden