#ifndef _QR_DRAW_PS_ #define _QR_DRAW_PS_ #include #include #include #include #include #include "qr_draw.h" #ifdef USE_TIFF #include "qr_draw_tiff.h" #endif //============================================================================= // QRDrawPS クラス //============================================================================= class QRDrawPS : public QRDraw { private: unsigned int tsize; private: int write(unsigned char data[MAX_MODULESIZE][MAX_MODULESIZE], char *mode); //normal ps int write2(unsigned char data[MAX_MODULESIZE][MAX_MODULESIZE]); //preview ps void write_header(FILE *stream); int write_preview(FILE *stream, unsigned char data[MAX_MODULESIZE][MAX_MODULESIZE]); void littleEndian(int data, unsigned char *lt); public: QRDrawPS(); int draw(char *filename, int modulesize, int symbolsize, unsigned char data[MAX_MODULESIZE][MAX_MODULESIZE], void *opt); }; #endif