-
-/*static*/ void
-wxMemoryFSHandlerBase::AddFile(const wxString& filename, wxImage& image, long type)
-{
- if (!CheckHash(filename)) return;
-
-
- wxMemoryOutputStream mems;
- if (image.Ok() && image.SaveFile(mems, (int)type))
- m_Hash -> Put(filename, new MemFSHashObj(mems));
- else
- {
- wxString s;
- s.Printf(_("Failed to store image '%s' to memory VFS!"), filename.c_str());
- wxPrintf(wxT("'%s'\n"), s.c_str());
- wxLogError(s);
- }
-}
-
-