GrabImage

From Spheriki

Jump to: navigation, search

GrabImage copies the specified area of the screen and returns a Sphere Image object.

Contents

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.

Examples

var screen = GrabImage(0, 0, GetScreenWidth(), GetScreenHeight());

Copies the entire screen area to an image.

Notes

GrabImage must be called before FlipScreen, since FlipScreen clears the buffer.

See also

Personal tools