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

Method SaveToJPEG

GTE/Applications/MSW/WICFileIO.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void WICFileIO::SaveToJPEG(std::string const& filename,
57 std::shared_ptr<Texture2> const& texture, float imageQuality)
58{
59 uint32_t format = DFTypeToFormat(texture->GetFormat());
60 WICFileIONative::SaveToJPEG(filename, format, texture->GetWidth(),
61 texture->GetHeight(), texture->Get<uint8_t>(), imageQuality);
62}
63
64uint32_t WICFileIO::DFTypeToFormat(uint32_t type)
65{

Callers

nothing calls this directly

Calls 3

GetFormatMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected