Autor Beitrag
Niels_
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 117



BeitragVerfasst: Di 09.09.03 17:12 
Ich hab ein Image (JPG) welches ich jetzt gerne verdunkeln möchte! Geht das mit Alpha-Blending? Wie? Oder gibt es da auch noch andere Möglichkeiten das Bild dunkler zu machen?
Pascal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 155

Win 98, Win XP
Delphi 2005, Delphi 5
BeitragVerfasst: Di 09.09.03 19:43 
Ich bin mir nicht sicher, aber ich glaube das Bild verfärbt sich bei Opengl entsprechend, wenn man glcolor3f(r,g,b)o.ä. einfügt.
wobei statt r,g und b natührlich Zahlen eingesetzt werden müssen.
Eggi
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 33

Win 2000, Win XP
D7 Prof
BeitragVerfasst: Di 09.09.03 19:45 
Hallo,

schau dir mal folgenden Thread an! www.delphi-forum.de/...15259&highlight=

Anstand jeden Farbwert um eine Konstante zu erhöhen, mußt du jeden Farbwert um einen Konstantenwert verringern.

Eggi
Niels_ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 117



BeitragVerfasst: Fr 12.09.03 19:54 
Titel: Danke, aber das hilft mir nicht so viel...
Joah, fang ich erstmal oben an: Also es ist nicht mit OpenGL (hilft mir daher nicht so viel) und es handelt sich um ein JPG-Bild, KEIN BMP bild! Da klappt das sicherlich, aber in meinem falle nicht! Könnt ihr mir vielleicht irgendwie anders helfen???

HELP! I Need somebody HELP! Not just anybody...
umpani
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 389



BeitragVerfasst: Fr 12.09.03 20:08 
Wenn du ein JPEG Bild in eine TImage-Kompo einlädst, dann ist das bild faktisch ein Bitmap.

Also image.picture.bitmap

_________________
Lernen, ohne zu denken, ist eitel; denken, ohne zu lernen, ist gefährlich. Konfuzius