FMX.WebBrowser.TCustomWebBrowser.CaptureBitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CaptureBitmap: TBitmap;

C++

Fmx::Graphics::TBitmap* __fastcall CaptureBitmap(void);

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:

  1. Call this method to capture a visible Web page as a bitmap.
  2. Hide a TWebBrowser control.
  3. 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).

See Also