Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Inhalt einer Paintbox in Image (https://www.delphipraxis.net/29260-inhalt-einer-paintbox-image.html)

hansklok 6. Sep 2004 18:43


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

Zacherl 6. Sep 2004 19:00

Re: Inhalt einer Paintbox in Image
 
Weis nicht obs klappt, ist mir grad so in den Sinn gekommen

Delphi-Quellcode:
image1.picture.assign(paintbox1.canvas);
PS: Könnt ihr mir den Source schicken (Email: florian.bernd@online.de) :-D
( Ich hab auch schon mal versucht ein Zeichenprogramm zu programmieren. Hat aber nicht so ganz geklappt. Vielleicht kann ich äuch ja helfen.)

hansklok 6. Sep 2004 19:06

Re: Inhalt einer Paintbox in Image
 
Nein, hat leider nicht funktioniert. Hast du vielleicht no ne Idee?

sCrAPt 6. Sep 2004 19:13

Re: Inhalt einer Paintbox in Image
 
Delphi-Quellcode:
BitBlt(Pic.Canvas.Handle, 0, 0, Pic.Width, Pic.Height, Paintbox1.Canvas.Handle, 0, 0, SRCCOPY);
Ich hoffe das es geht :roll:

http://og4all.de/s.jpg, sCrAPt

Zacherl 6. Sep 2004 19:52

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