![]() |
Is this correct?
Get RGB from TColor:
Delphi-Quellcode:
Set TColor from RGB:
R := AColor and $FF;
G := (AColor shr $8) and $FF; B := (AColor shr $10) and $FF;
Delphi-Quellcode:
Is it ok?
Result := (B shl $10) or (G shl $8) or R;
|
AW: Is this correct?
Yes, that should be right :thumb:
Code:
where Alpha is ignored by the GDI.
$00 FF FF FF
| | | | A B G R |
AW: Is this correct?
As implementation already said, it should work, but why don’t you just try it out? On a side note, I find using hexadecimal numbers for bitshifting a little confusing, but maybe that’s just me.
Zitat:
|
AW: Is this correct?
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:02 Uhr. |
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