I am afraid, you'll need to do that in 2 steps (unless you just want to leave the DPI untouched). But the second step is really fast - it just overwrites the resolution number in the header and leaves everything else as is (make sure to use -t in the second step).
The reason for this is that resizing by DPI is one of the modes and onle one mode can be used in one resizing.