Hi, Alle sabato 1 dicembre 2012, Daniele Depetrini ha scritto: > For a project, I needed to modify the PNGWriter class to write the > PNG in memory and not in a file so I took the original PNGWriter > classes and did needed modifications (extending the class as is was > not good enough because of private members not accessible). > > Will be nice to have a "unified" class capable to do both in memory > and file export, but some change are needed in the base class > "ImgWriter" too to have a clean implementation.
Side note: if you are using glibc, or you can rely on POSIX 2008, you can use open_memstream [1] for the job, making use of the existing FILE* interface. [1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/open_memstream.html -- Pino Toscano
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
