Code example for Surface

Methods: lockCanvas, unlockCanvasAndPost