MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromPng

Function fromPng

source/MRIOExtras/MRPng.cpp:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87{
88
89Expected<Image> fromPng( const std::filesystem::path& path )
90{
91 std::ifstream in( path, std::ios::binary );
92 if ( !in )
93 return unexpected( "Cannot open file " + utf8string( path ) );
94
95 return addFileNameInError( fromPng( in ), path );
96}
97
98Expected<MR::Image> fromPng( std::istream& in )
99{

Callers 2

postInit_Method · 0.85
load_Method · 0.85

Calls 8

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
ColorClass · 0.85
unexpectedFunction · 0.50
readMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected