RGBTOTColor/de: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: RGBTOTColor/de
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Zurück zur Seite [[code examples/de|Code Beispiele]]. | |
| 2 | + | ||
| 3 | + | Wandelt RGB-Farbwerte in den Datentyp TColor um. | |
| 4 | + | ||
| 5 | + | Die maximalen Werte von RGB sind 255, 255, 255. Das Ergebnis ist die Farbe Weiss. | |
| 6 | + | ||
| 7 | + | Die minimalen Werte von RGB sind 0, 0, 0. Das Ergebnis ist die Farbe Schwarz. | |
| 8 | + | ||
| 9 | + | ``` pascal | |
| 10 | + | uses | |
| 11 | + | Graphics, ...; | |
| 12 | + | ||
| 13 | + | ... | |
| 14 | + | ||
| 15 | + | function funRGBToTColor(bytRot, bytGruen, bytBlau: byte): TColor; | |
| 16 | + | begin | |
| 17 | + | Result := bytBlau shl 16 or bytGruen shl 8 or bytRot; | |
| 18 | + | end; | |
| 19 | + | ||
| 20 | + | ... | |
| 21 | + | ``` | |
| 22 | + | ||
| 23 | + | --- | |
| 24 | + | *From the Free Pascal wiki, page "RGBTOTColor/de", as it stood on 2020-02-25 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
