GrabDrawingImage()
Syntax
Result = GrabDrawingImage(#Image, x, y, Width, Height)Description
Create a new image with the content of the given area in the current output.
Parameters
#Image The number of the new image to create. #PB_Any can be used to select a number automatically. x, y, Width, Height The location and size of the area to copy into the new image. The new image will be created with the specified width and height.
Return value
Returns nonzero on success and zero on failure. If #PB_Any was used as the '#Image' parameter then the number of the new image is returned.
Remarks
This command does not work with PrinterOutput().
Any parts of the specified area that are outside of the drawing output will be undefined in the created image. Also if the current output is WindowOutput(), any part of the window that is currently not visible may be undefined in the resulting image.
See Also
GrabImage()
Supported OS
All