SPATIALLY RESOLVED GALAXY STAR FORMATION AND ITS ENVIRONMENTAL DEPENDENCE. II. EFFECT OF THE MORPHOLOGY–DENSITY RELATION