| 46 | } |
| 47 | |
| 48 | void WICFileIO::SaveToPNG(std::string const& filename, |
| 49 | std::shared_ptr<Texture2> const& texture) |
| 50 | { |
| 51 | uint32_t format = DFTypeToFormat(texture->GetFormat()); |
| 52 | WICFileIONative::SaveToPNG(filename, format, texture->GetWidth(), |
| 53 | texture->GetHeight(), texture->Get<uint8_t>()); |
| 54 | } |
| 55 | |
| 56 | void WICFileIO::SaveToJPEG(std::string const& filename, |
| 57 | std::shared_ptr<Texture2> const& texture, float imageQuality) |