Surface.pitch

int pitch()

Returns the number of bytes per row of pixels.