diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-03-02 16:13:01 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-03-02 16:13:01 +0000 |
commit | 5f5c0037b20895c4cb55f732d1002f46c8413b50 (patch) | |
tree | 5323a86ffc382aabde519b41231cb3d468baeadc /converter | |
parent | 5e0c642616dc0b52ed41224b667f63e4261f2c08 (diff) | |
download | netpbm-mirror-5f5c0037b20895c4cb55f732d1002f46c8413b50.tar.gz netpbm-mirror-5f5c0037b20895c4cb55f732d1002f46c8413b50.tar.xz netpbm-mirror-5f5c0037b20895c4cb55f732d1002f46c8413b50.zip |
Add pngx_writeImage
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3555 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/other/pngx.c | 9 | ||||
-rw-r--r-- | converter/other/pngx.h | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/converter/other/pngx.c b/converter/other/pngx.c index 0cc463dd..4bb09421 100644 --- a/converter/other/pngx.c +++ b/converter/other/pngx.c @@ -786,6 +786,15 @@ pngx_writeRow(struct pngx * const pngxP, void +pngx_writeImage(struct pngx * const pngxP, + png_byte ** const raster) { + + png_write_image(pngxP->png_ptr, (png_byte **)raster); +} + + + +void pngx_readEnd(struct pngx * const pngxP) { /* Note that some of info_ptr is not defined until png_read_end() diff --git a/converter/other/pngx.h b/converter/other/pngx.h index 25f0cdcc..f4701bb2 100644 --- a/converter/other/pngx.h +++ b/converter/other/pngx.h @@ -277,6 +277,10 @@ pngx_writeRow(struct pngx * const pngxP, const png_byte * const line); void +pngx_writeImage(struct pngx * const pngxP, + png_byte ** const raster); + +void pngx_readEnd(struct pngx * const pngxP); void |