Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi inkompatible typen TBitmap TImage (https://www.delphipraxis.net/34643-inkompatible-typen-tbitmap-timage.html)

JCooper 25. Nov 2004 21:54

Re: inkompatible typen TBitmap TImage
 
na das klappt ja wie am schnürchen,

was möchteste trinken?

:mrgreen:


danke

supermuckl 25. Nov 2004 22:01

Re: inkompatible typen TBitmap TImage
 
lol :)
np
ich zieh mir n pudding rein danke ;)

//edit
was mir da grad einfällt
das teil macht ja die einzelnen kanäle auf voll rot also 255
wenn du jetzt die rottöne z.b. nur ein wenig *verstärken* willst und nicht überschreiben willst, dann machste das so:

Delphi-Quellcode:
p^[3]:=255; <- rot komplett auf maximum setzen
-------------
p^[3]:=127; <- rot auf halbe kraft, aber du überzeichnest den roten kanal, und somit haste wenn du nur rot anschauen würdest, kein bild mehr sondern nur ne rote fläche
-------------
p^[3]:=round(p^[3]*0,5); <- so haste das bild noch korrekt, und die rottöne sind halbiert
-------------
p^[3]:=round(p^[3]*2);<-- verdoppelt usw.. ich weis jetzt nicht was rauskommt wenn es > 255 oder < 0 ist.. eventuell sowas unterbinden

JCooper 25. Nov 2004 22:23

Re: inkompatible typen TBitmap TImage
 
pudding, ... auch lecker :lol:

ja, macht voll rot, aber das bild erkenn ich trotzdem noch...da ja der grün und blau kanal noch den 'normalen' wert haben


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:29 Uhr.
Seite 2 von 2     12   

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