summaryrefslogtreecommitdiff
path: root/dviware/dvi2bitmap/XPMBitmap.h
blob: da66be2c2cd3d5be5cebde224a2be775aff0ea30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* This file is part of dvi2bitmap; see README for copyrights and licence */

// XPMBitmap contributed by Yamabe Kazuharu <tako_da@qc4.so-net.ne.jp>

#ifndef XPMBITMAP_HEADER_READ
#define XPMBITMAP_HEADER_READ 1

#include "BitmapImage.h"

class XPMBitmap : public BitmapImage {
 public:
    XPMBitmap (const int w, const int h);
    ~XPMBitmap();
    void setBitmap (const Byte *b);
    void setBitmapRow (const Byte *B);
    void setTransparent (const bool) { };
    void write (const string filename);
    string fileExtension() const { return "xpm"; }
};

#endif // #ifndef XPMBITMAP_HEADER_READ