MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / SaveToPNG

Method SaveToPNG

GTE/Applications/MSW/WICFileIO.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void 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
56void WICFileIO::SaveToJPEG(std::string const& filename,
57 std::shared_ptr<Texture2> const& texture, float imageQuality)

Callers

nothing calls this directly

Calls 3

GetFormatMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected