Document that wxString passed to AddFile() must use Latin-1

Otherwise To8BitData() would return an empty buffer for it.
This commit is contained in:
Vadim Zeitlin
2021-12-16 21:47:26 +01:00
parent 3c7b40e999
commit 673593f911

View File

@@ -83,6 +83,10 @@ public:
Stored data (bitmap, text or raw data) will be copied into private memory
stream and available under name @c "memory:" + @e filename.
When using the overload taking @c wxString data, the string must
contain only Latin-1 characters (which includes strings created using
wxString::From8BitData()).
@note you must use a @a type value (aka image format) that wxWidgets
can save (e.g. JPG, PNG, see wxImage documentation)!