MCPcopy Create free account
hub / github.com/audacity/audacity / LoadEmbeddedImage

Method LoadEmbeddedImage

src/WhatsNewDialog.cpp:348–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348wxImage WhatsNewDialog::LoadEmbeddedImage(const unsigned char* data, size_t len)
349{
350 wxMemoryInputStream stream(data, len);
351 wxImage image;
352 if (!image.LoadFile(stream, wxBITMAP_TYPE_ANY))
353 {
354 wxLogError("Failed to load embedded image.");
355 return wxImage();
356 }
357 return image;
358}

Callers

nothing calls this directly

Calls 2

LoadFileMethod · 0.80
wxImageClass · 0.70

Tested by

no test coverage detected