| 4D v13WR RGB to color | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D Write v13
 WR RGB to color 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WR RGB to color ( Rot ; Grün ; Blau ) -> Funktionsergebnis | ||||||||
| Parameter | Typ | Beschreibung | ||||||
| Rot | Lange Ganzzahl |   | Rote Komponente (0 bis 65535) | |||||
| Grün | Lange Ganzzahl |   | Grüne Komponente (0 bis 65535) | |||||
| Blau | Lange Ganzzahl |   | Blaue Komponente (0 bis 65535) | |||||
| Funktionsergebnis | Lange Ganzzahl |   | Farbe | |||||
Die Funktion WR RGB to color gibt eine Nummer zurück, über die 4D Write Farben verwaltet. Diese Nummer zeigt die drei Farbkomponenten Rot, Grün und Blau. Die Parameter Rot, Grün und Blau sind dieselben Werte wie in der Farbpalette Ihres Betriebssystems. Ihre Reichweite geht von 0 bis 65535.
Um folgende Farben zu erhalten, schreiben Sie:
 RedColor:=WR RGB to color(56576;2048;1536) `ergibt Rot
 GreenColor:=WR RGB to color(0;32768;4352) `Ergibt Grün
 BlueColor:=WR RGB to color(0;0;54272) `Ergibt Blau
 CyanColor:=WR RGB to color(512;43776;59904) `Ergibt Cyan
 MagentaColor:=WR RGB to color(64512;62208;1280) `Ergibt Magenta
 YellowColor:=WR RGB to color(61952;2048;33792) `Ergibt GelbFolgendes Beispiel gibt eine Zwischenfarbe zurück:
 WR COLOR TO RGB(c1;r1;g1;b1)
 WR COLOR TO RGB(c2;r2;g2;b2)
 c3:=WR RGB to color((r1+r2)/2;(g1+g2)/2;(b1+b2)/2)
	Produkt: 4D
	Thema: WR Hilfsmittel
	Nummer: 
        89170
        
        
        
	
     Alphabetische Liste der Befehle
    Alphabetische Liste der Befehle
	Erstellt: 4D Write 6