![]() |
Inhalt einer Paintbox in Image
Hallo,
ich arbeitet mit zwei anderen Leuten gerade an einem Zeichenprogramm. Nun haben wir eine Exportfunktion, die den Inhalt einer PaintBox als Bitmap speichert. Wie aber bekomme ich den Inhalt einer Paintbox auf ein Image? Danke |
Re: Inhalt einer Paintbox in Image
Weis nicht obs klappt, ist mir grad so in den Sinn gekommen
Delphi-Quellcode:
PS: Könnt ihr mir den Source schicken (Email: florian.bernd@online.de) :-D
image1.picture.assign(paintbox1.canvas);
( Ich hab auch schon mal versucht ein Zeichenprogramm zu programmieren. Hat aber nicht so ganz geklappt. Vielleicht kann ich äuch ja helfen.) |
Re: Inhalt einer Paintbox in Image
Nein, hat leider nicht funktioniert. Hast du vielleicht no ne Idee?
|
Re: Inhalt einer Paintbox in Image
Delphi-Quellcode:
Ich hoffe das es geht :roll:
BitBlt(Pic.Canvas.Handle, 0, 0, Pic.Width, Pic.Height, Paintbox1.Canvas.Handle, 0, 0, SRCCOPY);
![]() |
Re: Inhalt einer Paintbox in Image
wieso zeichnet ihr nicht direkt auf einer instanz von timage und speichert das bild dann mit
Delphi-Quellcode:
:?:
image1.picture.savetofile();
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:30 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