|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef TIFFWRITER_H |
|
#define TIFFWRITER_H |
|
|
|
#include "poppler-config.h" |
|
#include "poppler_private_export.h" |
|
|
|
#ifdef ENABLE_LIBTIFF |
|
|
|
# include <sys/types.h> |
|
# include "ImgWriter.h" |
|
|
|
struct TiffWriterPrivate; |
|
|
|
class POPPLER_PRIVATE_EXPORT TiffWriter : public ImgWriter |
|
{ |
|
public: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum Format |
|
{ |
|
RGB, |
|
RGBA_PREMULTIPLIED, |
|
GRAY, |
|
MONOCHROME, |
|
CMYK, |
|
RGB48 |
|
}; |
|
|
|
explicit TiffWriter(Format format = RGB); |
|
~TiffWriter() override; |
|
|
|
TiffWriter(const TiffWriter &other) = delete; |
|
TiffWriter &operator=(const TiffWriter &other) = delete; |
|
|
|
void setCompressionString(const char *compressionStringArg); |
|
|
|
bool init(FILE *openedFile, int width, int height, double hDPI, double vDPI) override; |
|
|
|
bool writePointers(unsigned char **rowPointers, int rowCount) override; |
|
bool writeRow(unsigned char **rowData) override; |
|
|
|
bool supportCMYK() override { return true; } |
|
|
|
bool close() override; |
|
|
|
private: |
|
TiffWriterPrivate *priv; |
|
}; |
|
|
|
#endif |
|
|
|
#endif |
|
|