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

Function LoadEmbeddedPNG

src/update/Audacity40PromoDialog.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 StringSetting perfAudioComUserId { wxT("/cloud/audiocom/userId"), wxEmptyString };
37
38 wxBitmap LoadEmbeddedPNG(const unsigned char* data, size_t len)
39 {
40 wxMemoryInputStream stream(data, len);
41 wxImage image;
42 if (!image.LoadFile(stream, wxBITMAP_TYPE_PNG))
43 {
44 wxLogError("Failed to load embedded PNG image.");
45 return wxBitmap();
46 }
47 return wxBitmap(image);
48 }
49}
50
51Audacity40PromoDialog::Audacity40PromoDialog(wxWindow* parent, const Notification& notification)

Callers 1

Audacity40PromoDialogMethod · 0.85

Calls 2

LoadFileMethod · 0.80
wxBitmapClass · 0.50

Tested by

no test coverage detected