Object-Surface

From Spheriki

(Redirected from Surface)
Jump to: navigation, search

The Surface object is like an offscreen canvas on which you can draw and manipulate image data.


Contents

Initializers


Methods


Members

  • width number, positive, read-only. Width of the surface in pixels.
  • height number, positive, read-only. Height of the surface in pixels.


Notes

  • It is faster to blit an image to screen than a surface, but it is much easier to manipulate a surface.
  • The Surface object can be used to quickly make custom screenshots:
GrabSurface(0, 0, GetScreenWidth(), GetScreenHeight()).save("my_screenshot.png");

See also

Personal tools