GrabImage
From Spheriki
GrabImage copies the specified area of the screen and returns a Sphere Image object.
Contents |
[edit]
Usage
Image GrabImage(x, y, width, height);
- x The x coordinate of the rectangle to copy, in pixels.
- y The y coordinate of the rectangle, in pixels.
- width The width of the rectangle, in pixels.
- height The height of the rectangle, in pixels.
[edit]
Examples
var screen = GrabImage(0, 0, GetScreenWidth(), GetScreenHeight());
Copies the entire screen area to an image.
[edit]
Notes
GrabImage must be called before FlipScreen, since FlipScreen clears the buffer.
[edit]
See also
GrabSurface- Image object

