So would it be accurate to say:
An image has the quality [number of dots], and DPI is the choice of how many of those dots to cram into a given area on the device displaying the image--but most of the time only physical printing devices let the creator of the image control that choice in a meaningful way.