We propose a polarization-controlled bifunctional metasurface composed of arrayed trapezoidal nanoantennas. Under orthogonal-polarized incidence, different types of gap-surface plasmons are generated, regulating the intensity and phase, respectively. Thus, structural color printing and beam deflection functions are achieved on a miniaturized chip. The color printing function works from 400 to 800 nm, exhibiting a subwavelength-scale chromatic image with a broad gamut. The beam deflection function works from 360 to 540 nm, mapping light to the first diffraction order with the anomalous angle from 40.4° to 76.6°. The proposed bifunctional metasurface could serve as a key component in integrated optics systems and will find many other wide-ranging applications in optical and biological areas.