PrintSettings.setResolution

void setResolution(int resolution)