We propose an optical corrective element with zooming capability to convert nonlinear sinusoidal scanning into linear scanning. Such a device will be useful for linearizing the angular scan of a resonant mirror scanner. The design methodology is to create a graded index of refraction device as the reference design, with its index of refraction parameters based on the propagation of an electromagnetic field in inhomogeneous media. The algorithm for converting this refractive element to the corresponding binary diffractive version is also presented. Design and simulation data are shown.