summaryrefslogtreecommitdiffstats
path: root/src/helper/png-write.h
blob: 2d2c165444a9cd6afe364f0dd6d197f0d7c13990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __SP_PNG_WRITE_H__
#define __SP_PNG_WRITE_H__

/*
 * PNG file format utilities
 *
 * Authors:
 *   Lauris Kaplinski <lauris@kaplinski.com>
 *
 * Copyright (C) 1999-2002 Lauris Kaplinski
 *
 * Released under GNU GPL, read the file 'COPYING' for more information
 */

#include <glib/gtypes.h>

int sp_png_write_rgba(gchar const *filename, guchar const *px, int width, int height, int rowstride);

int sp_png_write_rgba_striped(gchar const *filename, int width, int height,
			      int (* get_rows) (guchar const **rows, int row, int num_rows, void *data),
			      void *data);

#endif