ScreenshotDesktop, Form, Control and Window Grabber Component for VCL
For all versions of Delphi and C++ Builder from 3 to 10.2 Tokyo and for all versions of Windows from XP to 10
Screenshot allows to get image of any form and control in your application of any window in your system as well as image of entire desktop.
function Snap: Boolean;
Main method of component. It copies image from the selected source to internal buffer reperesented by Screenshot property. Return value is True is the image was copied successfully, otherwise False.
function CopyToClipboard: Boolean;
This method copies screenshot into Windows' clipboard. Function returns False if the screenshot is empty.
property Screenshot: TBitmap;
This read-only property contains screenshot image. You can use it as usual TBitmap object, for instance, you can assign it to TImage's Picture property (
Image1.Picture.Assign(Screenshot1.Screenshot);), save image using standard TBitmap methods (
Screenshot1.Screenshot.SaveToFile('filename.bmp');) and so on.
property Source: TScreenshotSource;
You can choose screenshot source between desktop, form that owns the component, control on any form of your application and window in your Windows.
property Control: TControl;
property WindowHandle: THandle;
Handle of the source window in your system. You can know window handle with our free WinDowse utility.
property EntireWindow: Boolean;
If this property is True, entire window image with borders, caption, etc. will be grabbed. When this property is False, only client area will be grabbed.
Screenshot component suite includes demo project that demonstrates main features of TScreenshot component: