How to Invert a DicomImage

By “invert”, most people mean change black to white and visa versa, and this can be done by a simple line of code.