| 134 | } |
| 135 | |
| 136 | void WICLoader::CopyPixels(void *pDest, uint32_t stride, uint32_t bytesWidth, uint32_t height) |
| 137 | { |
| 138 | for (uint32_t y = 0; y < height; y++) |
| 139 | { |
| 140 | memcpy((char*)pDest + y*stride, m_pData + y*bytesWidth, bytesWidth); |
| 141 | } |
| 142 | |
| 143 | MipImage(bytesWidth / 4, height); |
| 144 | } |
| 145 | |
| 146 | float WICLoader::GetAlphaCoverage(uint32_t width, uint32_t height, float scale, int cutoff) const |
| 147 | { |