#include "base/pngwriter.hh"
#include <png.h>
#include <cstdio>
#include <cstdlib>
#include "base/logging.hh"
Go to the source code of this file.
◆ writePng()
static void writePng |
( |
png_structp |
pngPtr, |
|
|
png_bytep |
data, |
|
|
png_size_t |
length |
|
) |
| |
|
static |
Write callback to use with libpng APIs.
- Parameters
-
pngPtr | pointer to the png_struct structure |
data | pointer to the data being written |
length | number of bytes being written |
Definition at line 64 of file pngwriter.cc.
References data, and length.
Referenced by PngWriter::write().