Home > PHP > Function > GD > imagegrabwindow()

imagegrabwindow()

imagegrabwindow - Captures a window

Syntax

resource imagegrabwindow (int $window_handle, int $client_area)

Arguments

  • window_handle - The HWND window ID.
  • client_area - Include the client area of the application window.

Description

Grabs a window or its client area using a windows handle (HWND property in COM instance)

Version

PHP 5.2.2

Return value

Returns an image resource identifier on success, FALSE on failure.