Autor Beitrag
bs-Hobbit
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

Windows Xp (Home/Prof.), Windows Server 2003, Linux
D7,D2005
BeitragVerfasst: Mi 15.02.06 22:53 
Hi,

folgendes Problem:
Ich habe ein Image Feld, in das ich gerne zwei Bitmaps laden möchte.
Ein "Grundbitmap" und eine "Überlagerungsbitmap".

Bei der Überlagerungsbitmap gibt es einen Bereich,der durch einen bestimmten Farbwert gekennzeichnet ist.

Jetzt möchte ich halt, die grundbitmap in das Image Feld zeichne, und drüber die Überlagerrungsbitmap, nur das dort der gekennzeichnete Bereich Transparant dargestellt werden soll.

mfg

Hobbit
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mi 15.02.06 23:21 
ich glaub das ging so
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
var Ebene: TBitmap;
begin
  Ebene:= TBitmap.Create;
  Ebene.TransparentColor:= $00FF8080; //Die transparente farbe
  Ebene.Transparent:= True;           //Die 3 Zeilen rufe ich immer in der Form.Create auf

  Ebene.LoadFromFile(Bild1));
  Form1.Image1.Canvas.Draw(0, 0, Ebene);         // 0,0 geben die koordinaten an wo das bild in dem image gemalt werden soll
  Ebene.LoadFromFile(Bild2));
  Form1.Image1.Canvas.Draw(0, 0, Ebene);
end;
bs-Hobbit Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 46

Windows Xp (Home/Prof.), Windows Server 2003, Linux
D7,D2005
BeitragVerfasst: Mi 15.02.06 23:29 
Vielen vielen dank ;) Funktioniert einwandfrei :-)