| 168 | } |
| 169 | |
| 170 | BF_EXPORT bool BF_CALLTYPE Res_WritePNG(uint32* bits, int width, int height, const char* filePath) |
| 171 | { |
| 172 | String& outString = *gResLib_TLStrReturn.Get(); |
| 173 | PNGData pngData; |
| 174 | pngData.mBits = bits; |
| 175 | pngData.mWidth = width; |
| 176 | pngData.mHeight = height; |
| 177 | bool result = pngData.WriteToFile(filePath); |
| 178 | pngData.mBits = NULL; |
| 179 | outString.Clear(); |
| 180 | outString.Insert(0, (char*)pngData.mSrcData, pngData.mSrcDataLen); |
| 181 | return result; |
| 182 | } |
nothing calls this directly
no test coverage detected