Autor Beitrag
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: So 09.07.06 16:33 
Hallo,
ich möchte bei meinem Programm ein Farbe bestimmen die ich dann über den Bildschirm legen will. Dazu lade ich die Bilder aus einer Datei in eine TImage Komponente. Nun wird das Bild aber ganz angezeigt. Ich möchte es aber halbdurchsichtig anzeigen lassen. Ist das möglich?

Ich habe mir auch schon das angeschaut. Aber das macht ja nur Forms halbtransparent und nicht Bilder einer Image-Komponente.

MfG
Regan


Zuletzt bearbeitet von Regan am Mo 24.07.06 17:51, insgesamt 1-mal bearbeitet
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 09.07.06 16:54 
Du könntest einen Screenshot machen und dann beide Bilder durchgehen und für jeden Pixel die Mischfarbe berechnen. Wie letzteres geht steht hier: turing.fh-landshut.d...n/Alphablending.html

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: So 09.07.06 18:26 
Aha... äh, also. Ich bin zwar in Mathe nicht ganz schlecht, aber... das ist mir dann doch etwas umständlich. Vor allem weil ich die Bilder wechseln will. Gibt es vielleicht auch die Möglichkeit, eine Komponente zu schreiben, die gleich halbtransparent ist, und bei der ich eine Farbe einstellen kann, die diese Komponente dann anzeigt. Mir geht es nämlich um einen Discolighttester. Dabei will ich bestimmte Lichter laden, flackern lassen und Farben wechseln. Das geht ja alles ganz gut, bis auf das, dass es halbtransparent ist.
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 09.07.06 19:00 
Soll ich dir eine programmieren? Ich machs auch aus Eigeninteresse. Aber morgen, ich guck jetzt Fussball! Kannst mir ja ne PN schreiben. ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot