| 58 | } |
| 59 | |
| 60 | bool CImageInfo::DataEquals(const CImageInfo &Other) const |
| 61 | { |
| 62 | if(m_Width != Other.m_Width || m_Height != Other.m_Height || m_Format != Other.m_Format) |
| 63 | return false; |
| 64 | if(m_pData == nullptr && Other.m_pData == nullptr) |
| 65 | return true; |
| 66 | if(m_pData == nullptr || Other.m_pData == nullptr) |
| 67 | return false; |
| 68 | return mem_comp(m_pData, Other.m_pData, DataSize()) == 0; |
| 69 | } |
| 70 | |
| 71 | ColorRGBA CImageInfo::PixelColor(size_t x, size_t y) const |
| 72 | { |
no test coverage detected