source: trunk/poppler/mypoppler/goo/ImgWriter.h @ 497

Last change on this file since 497 was 497, checked in by Silvan Scherrer, 10 years ago

Lucide: updated fontconfig and poppler

File size: 941 bytes
Line 
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>
12//
13//========================================================================
14
15#ifndef IMGWRITER_H
16#define IMGWRITER_H
17
18#include <stdio.h>
19       
20class ImgWriter
21{
22        public:
23                virtual ~ImgWriter();
24                virtual bool init(FILE *f, int width, int height, int hDPI, int vDPI) = 0;
25               
26                virtual bool writePointers(unsigned char **rowPointers, int rowCount) = 0;
27                virtual bool writeRow(unsigned char **row) = 0;
28               
29                virtual bool close() = 0;
30                virtual bool supportCMYK() { return false; }
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.