sinc with TL 35771
[luatex.git] / source / libs / poppler / poppler-0.29.0 / goo / ImgWriter.h
blob8feb3511e4dc6f54a0d38e17a089f7b23d7ca6a4
1 //========================================================================
2 //
3 // ImgWriter.h
4 //
5 // This file is licensed under the GPLv2 or later
6 //
7 // Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
8 // Copyright (C) 2009, 2011 Albert Astals Cid <aacid@kde.org>
9 // Copyright (C) 2010 Adrian Johnson <ajohnson@redneon.com>
10 // Copyright (C) 2010 Brian Cameron <brian.cameron@oracle.com>
11 // Copyright (C) 2011 Thomas Freitag <Thomas.Freitag@alfa.de>
13 //========================================================================
15 #ifndef IMGWRITER_H
16 #define IMGWRITER_H
18 #include <stdio.h>
20 class ImgWriter
22 public:
23 virtual ~ImgWriter();
24 virtual bool init(FILE *f, int width, int height, int hDPI, int vDPI) = 0;
26 virtual bool writePointers(unsigned char **rowPointers, int rowCount) = 0;
27 virtual bool writeRow(unsigned char **row) = 0;
29 virtual bool close() = 0;
30 virtual bool supportCMYK() { return false; }
33 #endif