AW: Farbe wird verändert
Was war dann die Ursache und wie hast du das Problem gelöst?
|
AW: Farbe wird verändert
Zitat:
stdcall wirkt manchmal wunder. (vor allem dann wenn diese Function sich in einer DLL befindet.)
Delphi-Quellcode:
gruss
function RGBtoGray(Value: COLORREF):COLORREF; stdcall;
asm movzx edx,al imul edx,19595 // Red movzx ecx,ah imul ecx,38470 // Greean shr eax,16 imul eax,7471 // Blue add eax,ecx add eax,edx shr eax,16 mov ah,al shl eax,8 mov al,ah end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:42 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz