| 217 | |
| 218 | template <typename T1, typename T2> |
| 219 | T2 BitmapColorCast(const T1 value) { |
| 220 | return std::min(static_cast<T1>(std::numeric_limits<T2>::max()), |
| 221 | std::max(static_cast<T1>(std::numeric_limits<T2>::min()), |
| 222 | std::round(value))); |
| 223 | } |
| 224 | |
| 225 | } // namespace internal |
| 226 |
nothing calls this directly
no outgoing calls
no test coverage detected