Hi, John,
this is the right place.
How will you do this?
I see the following potential problems:
- MigraDoc documents can persist in text files (MGDDL) - this only works if images exist in files, too (this is also used for the Preview dialogue)
- MigraDoc can emit HTML documents - this only works if images exist in files
- MigraDoc can emit RTF documents - IIRC images use references to files in the file system
- PDF shouldn't be a problem as images are stored inside the PDF
Therefore images that only exist in memory will only work with PDF (not with Preview, not with RTF).
Temporary files should solve the Preview issue (or an exception should be thrown).
RTF and HTML will need permanent files (how about using hash codes as filenames to avoid duplicate files?) - otherwise an exception should be thrown.
Contributions will be included in future releases if approved by our chief developer ...