# File lib/rubygame/surface.rb, line 455 def pixels len = @struct.pitch * @struct.h SDL.LockSurface(@struct) pix = @struct.pixels.get_bytes(0, len) SDL.UnlockSurface(@struct) return pix end