![]() |
Re: Bitmap32 auf ZielBitmap32 malen
Zitat:
// Thebar??? also Zielbitmap? und SourceBitmap ist was in welchem Fall? ich hab ja 3! TheBar.Draw(0,0, SourceBitmap) |
Re: Bitmap32 auf ZielBitmap32 malen
Wenn das Ergebnis anschließend in TheBar sein soll, musst Du auch auf TheBar zeichnen.
|
Re: Bitmap32 auf ZielBitmap32 malen
Zitat:
Delphi-Quellcode:
Geht nich :-(
TheBar.Draw(0, 0, OutLeft);
TheBar.Draw(outleft.Width + Outmiddle.Width, 0, OutRight); TheBar.Draw(0, 0, OutMiddle); |
Re: Bitmap32 auf ZielBitmap32 malen
Was heißt geht nich? Kommt nix oder an der falschen Stelle? Wird bei TBitmap32 Draw direkt aufgerufen oder über Canvas? Anbei mal ein Beispiel mit "normalen" Bitmaps (achte mal auf die Koordinaten beim Zeichnen auf Ziel):
Delphi-Quellcode:
procedure TForm1.FormPaint(Sender: TObject);
var qb1, qb2, qb3, ziel: TBitmap; begin //Erzeugen und Zeichnen der 3 Quellbitmaps qb1 := TBitmap.Create; try qb1.Width := 20; qb1.Height := 40; qb1.Canvas.Brush.Color := clRed; qb1.Canvas.FillRect(Rect(0,0,20,40)); qb2 := TBitmap.Create; try qb2.Width := 20; qb2.Height := 40; qb2.Canvas.Brush.Color := clYellow; qb2.Canvas.FillRect(Rect(0,0,20,40)); qb3 := TBitmap.Create; try qb3.Width := 20; qb3.Height := 40; qb3.Canvas.Brush.Color := clBlue; qb3.Canvas.FillRect(Rect(0,0,20,40)); //Erzeugen und Zeichnen der Zielbitmap ziel := TBitmap.Create; try ziel.Width := 60; ziel.Height := 40; //linke Quellbitmap ziel.Canvas.Draw(0,0,qb1); //mittlere Quellbitmap ziel.Canvas.Draw(qb1.Width,0,qb2); //rechte Quellbitmap ziel.Canvas.Draw((qb1.Width + qb2.Width),0,qb3); self.Canvas.Draw(10,10,ziel); finally ziel.Free; end; finally qb3.Free; end; finally qb2.Free; end; finally qb1.Free; end; end; |
Re: Bitmap32 auf ZielBitmap32 malen
Zitat:
|
Re: Bitmap32 auf ZielBitmap32 malen
Moin, Moin.
Ist vielleicht BitBlt() eine Alternative? Damit können doch die 3 einzelnen Bitmaps ruck-zuck in das Zielbitmap kopiert werden... |
Re: Bitmap32 auf ZielBitmap32 malen
Delphi-Quellcode:
Und so?
TheBar.Width := OutLeft.Width + OutMiddle.Width + OutRight.Width;
TheBar.Draw(0, 0, OutLeft); TheBar.Draw(OutLeft.Width, 0, OutMiddle); TheBar.Draw(outleft.Width + Outmiddle.Width, 0, OutRight); |
Re: Bitmap32 auf ZielBitmap32 malen
Zitat:
Ich würd dir ja gerne das gesamte Project senden zum testen nur du hast kein Graphics32??? |
Re: Bitmap32 auf ZielBitmap32 malen
Zitat:
|
Re: Bitmap32 auf ZielBitmap32 malen
Zitat:
Kannste dir die Graphics32 nicht bei SourceForge holen? ich mein Einbindung dauert ja grad mal 10 - 15 Sekunden, sind ja nur units:-) |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:26 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz