FMX.WebBrowser.TCustomWebBrowser.CaptureBitmap
Delphi
function CaptureBitmap: TBitmap;
C++
Fmx::Graphics::TBitmap* __fastcall CaptureBitmap();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.WebBrowser.pas FMX.WebBrowser.hpp |
FMX.WebBrowser | TCustomWebBrowser |
Description
Captures the currently visible Web page as a bitmap.
This method returns a TBitmap object, which allows you to create, manipulate and store images in memory or as files on a disk. The scenario of the use of this method could be as follows:
- Call this method to capture a visible Web page as a bitmap.
- Hide a TWebBrowser control.
- Display the bitmap and overlay other components (such as buttons or popups) on top of the bitmap.
For more information and samples, see Mobile Tutorial: Using the Web Browser Component (iOS and Android).