Sets the resolution.