With the security problem of image information as the background,the scrambling technology based on the generalized Gray code is discussed and the formula of the periodicity of the scrambling transformation is given.Some results of Ding Wei,et al(1999) are generalized.$$$$