[Lazarus] How to copy specific region of desktop?

Bo Berglund bo.berglund at gmail.com
Wed Feb 3 00:03:20 CET 2021

I wonder if there is a (preferably cross-platform) method to:

1) Select a region of the current desktop by placing a rectangle over it with
the mouse.

2) Copy the part of the desktop within the rectangle as an image to the

If so what functions do I need to accomplish the selection and the copy?

I am using Lazarus 2.0.10 and Fpc 3.2.0 on Windows 10 and Ubuntu 18.04.5

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list