Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TShape - neue farbe Organge (https://www.delphipraxis.net/113048-tshape-neue-farbe-organge.html)

DeddyH 2. Mai 2008 20:36

Re: TShape - neue farbe Organge
 
Mit der Zuweisung
Delphi-Quellcode:
Color := RGB(255,0,0);
solltest Du ein schön rotes Formular bekommen (Unit ist glaube ich Windows, ohne Gewähr).

Namenloser 2. Mai 2008 20:38

Re: TShape - neue farbe Organge
 
Zitat:

Zitat von 3_of_8
@NamenLozer: Im Speicher liegt das ganze als RRGGBB00. Als Integer interpretiert ist das auf einem Little-Endian-System wie dem x86 0x00BBGGRR. Also ist 0x000080FF völlig richtig: Rote Farbe mit voller Intensität, grüne Farbe mit halber Intensität, blaue Farbe gar nicht. ;)

Stimmt, ich komm da immer durcheinander. Wenn man G, B, R, A als Bytes in dieser Reihenfolge in einen Record packt ist es in der richtigen Reihenfolge. Und bei HTML ist es auch #RRGGBB.


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:28 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz