Can Delphi Firemonkey Tcontrol.makescreenshot Work In A Thread?
I've created a simple FireMonkey screenshot capture that works fine on Android and Windows..: procedure Capture; var B : TBitmap; begin try B := Layout1.MakeScreenshot;
Solution 1:
MakeScreenShot is not thread safe, so you cannot safely use it in a thread. If this works in Windows then I'd say you were just lucky. I'd suggest that you take the screenshot outside of the thread and only use the thread for saving the screenshot to png. Painting should be fast while encoding to png needs a lot more resources. So you should still benefit pretty much from the thread.
Post a Comment for "Can Delphi Firemonkey Tcontrol.makescreenshot Work In A Thread?"