Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Firemonkey: TForm3D Context und Screenshot (https://www.delphipraxis.net/189072-firemonkey-tform3d-context-und-screenshot.html)

CHackbart 30. Apr 2016 11:53

Firemonkey: TForm3D Context und Screenshot
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hi,

ich hab hier ein Problem und finde nicht den Fehler. Ich brauche von einem Formular ein Screenshot. Bei HD Formularen reicht es ja die PaintTo Routine zu verwenden und bei 3D Formularen sollte man Context.CopyToBitmap verwenden.

Leider geht es unter Seattle und Berlin nicht, wohl aber unter XE5. Alles andere hab ich nicht getestet. Anbei mal ein einfaches Beispiel.

Vielleicht hat ja jemand eine Idee?

Christian
PS: Ich denke das liegt am Multisample

Harry Stahl 1. Mai 2016 00:44

AW: Firemonkey: TForm3D Context und Screenshot
 
In XE6 funktioniert es noch, ab XE7 nicht mehr. Problematische Funktion ist wohl "DoCopyToBits" (Aufruf innerhalb CopyToBitmap bzw. DoCopyToBitmap in FMX.Types3D.pas).

Die DoCopyTobits ist eine abstrakte Prozedur, die je nach Kontext eine Bearbeitungsfunktion auswählt (DirectX9, DirectX 10, etc). Und diese liefert eben ab Delphi XE7 kein Ergebnis mehr zurück.

Scheint mir ein Bug zu sein.


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz