| 15 | } |
| 16 | |
| 17 | void ImageSource::swap(ImageSource& first, ImageSource& second) { |
| 18 | std::swap(first._colorType, second._colorType); |
| 19 | std::swap(first._dataType, second._dataType); |
| 20 | std::swap(first._spacing, second._spacing); |
| 21 | std::swap(first._samplesPerPixel, second._samplesPerPixel); |
| 22 | std::swap(first._isValid, second._isValid); |
| 23 | } |
| 24 | |
| 25 | const int ImageSource::getSamplesPerPixel() const { |
| 26 | if (_isValid) { |