We discuss the generation of Hermite-Gauss and Ince-Gauss beams employing phase elements whose transmittances coincide with the phase modulations of such beams. A scaled version of the desired field appears, distorted by marginal optical noise, at the element's Fourier domain. The motivation to perform this study is that, in the context of the proposed approach, the desired beams are generated with the maximum possible efficiency. A disadvantage of the method is the distortion of the desired beams by the influence of several nondesired beam modes generated by the phase elements. We evaluate such distortion employing the root mean square deviation as a figure of merit.