[poppler] MemoryPNGWriter

Pino Toscano pino at kde.org
Sat Dec 1 10:09:07 PST 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20121201/eee86d15/attachment.pgp>


More information about the poppler mailing list