Autor Beitrag
kabizolis
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 28.04.06 10:57 
ich erzeuge dynamisch TBitmap, lade ein bild hinein... diese bilder bewegen sich auf der Form... wenn diese Bilder übereinander geraten, vermischt sich der Farbwert.... wie kann ich das verhindern?
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Fr 28.04.06 11:40 
ausblenden Delphi-Quelltext
1:
Bitmap.Transparent := True;					

oder/und
ausblenden Delphi-Quelltext
1:
Bitmap.TransparentColor := Bitmap.Canvas.Pixels[0,0];					

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
kabizolis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 28.04.06 12:48 
klappt bei mir nicht... :-(
wie muss ich das genau versteh'n?
Herbs
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 37

Win XP home edition
Delphi 2005 Prof
BeitragVerfasst: Fr 28.04.06 13:18 
kann es ein, dass bei dir die bilder anderst heißen? Hier heißen sie Bitmap bei dir wahrscheinlich bitmap1 oder?
kabizolis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 28.04.06 13:45 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
  for i := 1 to 7 do
   begin
    lebensymbole[i]:= TBitmap.Create();
     with lebensymbole[i] do
      begin
       width := 32;
       height := 32;
       LoadFromFile(extractFilePath(ParamStr(0)) + ar_Bilder[i] + '.bmp');
       Transparent := true;
       TransparentColor := lebensymbole[i].Canvas.Pixels[0,0];
      end;
   end;


so sieht's bei mir aus....
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Fr 28.04.06 16:49 
Wie werden die Bitmaps angezeigt, mit Draw oder CopyRect?

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!