Autor Beitrag
G-McKree
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178



BeitragVerfasst: Do 13.11.03 22:39 
welche Farbe sieht das TImage als tranparent an, wenn man Transparent auf True setzt?
masterworld
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: Fr 14.11.03 05:35 
Die Eigenschaft Transparent legt fest, ob Objekte durch den Hintergrund der Grafik verdeckt werden.
barfuesser
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 324



BeitragVerfasst: Fr 14.11.03 10:03 
Ich bin mir nicht sicher, aber ich glaube es war die Farbe, die der Pixel rechts oder links unten hat.

barfuesser
Simon Joker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236
Erhaltene Danke: 1



BeitragVerfasst: Fr 14.11.03 12:06 
Hi G-McKree

Aus der Hilfe:
Zitat:

TImage ->
Die Eigenschaft Transparent legt fest, ob Objekte durch den Hintergrund des Bildes verdeckt werden.

property Transparent: Boolean;

Beschreibung

Setzen Sie Transparent auf True, wenn Objekte, die hinter dem TImage-Objekt liegen, durch dessen Hintergrund sichtbar sein sollen. False bewirkt, daß der Hintergrund des Bitmap nicht durchsichtig ist. Die Einstellung von Transparent wirkt sich direkt auf die Eigenschaft Transparent des in Picture enthaltenen Bildes aus.

Hinweis

Transparent hat nur dann eine Auswirkung, wenn die Eigenschaft Picture ein Bitmap enthält.

Und TBitmap ->
Die Eigenschaft TransparentColor gibt die Farbe des Bitmaps zurück, wenn es transparent dargestellt wird.

property TransparentColor: TColor;

Beschreibung

Mit TransparentColor kann ermittelt werden, welche Farbeinstellung bewirkt, daß das Bitmap transparent erscheint. Wenn die Eigenschaft TransparentMode auf tmAuto (Vorgabe) gesetzt ist, liefert TransparentColor die Farbe des ersten Pixels der Bitmap-Daten zurück. Bei Standard-Bitmaps ist das erste Pixel das Pixel, das links unten auf dem Bildschirm dargestellt wird. Bei "umgedrehten" Bitmaps (seltener) ist das erste Pixel das Pixel, das links oben auf dem Bildschirm dargestellt wird.

Wenn TransparentColor zugewiesen ist, wird TransparentMode automatisch auf tmFixed gesetzt, so daß die neue transparente Farbe später verwendet werden kann. Wenn TransparentColor alle Zuweisungen ignorieren und wieder die Farbe des Pixels links unten zurückliefern soll, setzen Sie TransparentMode auf tmAuto.


Also solltest du folgendes tun (außer "F1" :twisted: ), um z.B. Schwarz transparent zu machen:

ausblenden Delphi-Quelltext
1:
2:
Image1.Picture.Bitmap.TransparentColor:=clBlack;
Image1.Transparent:=true;
G-McKree Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178



BeitragVerfasst: Fr 14.11.03 22:45 
thx
funzt
Thunder
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 145

WinXP
D6 Pers
BeitragVerfasst: So 14.03.04 18:53 
@SimonJoker

DANKE! !! ! Da shab ich gesucht. Bei mir funzte Transparent au net. Durch die Einstellung gehts jetz. Supi