filters
ImageOutputDev.h00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef IMAGEOUTPUTDEV_H
00010 #define IMAGEOUTPUTDEV_H
00011
00012 #include <aconf.h>
00013
00014 #ifdef USE_GCC_PRAGMAS
00015 #pragma interface
00016 #endif
00017
00018 #include <stdio.h>
00019 #include "gtypes.h"
00020 #include "OutputDev.h"
00021
00022 class GfxState;
00023
00024
00025
00026
00027
00028 class ImageOutputDev: public OutputDev {
00029 public:
00030
00031
00032
00033
00034
00035 ImageOutputDev(char *fileRootA, GBool dumpJPEGA);
00036
00037
00038 virtual ~ImageOutputDev();
00039
00040
00041 virtual GBool isOk() { return ok; }
00042
00043
00044
00045 virtual GBool interpretType3Chars() { return gFalse; }
00046
00047
00048 virtual GBool needNonText() { return gFalse; }
00049
00050
00051
00052
00053
00054 virtual GBool upsideDown() { return gTrue; }
00055
00056
00057 virtual GBool useDrawChar() { return gFalse; }
00058
00059
00060 virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
00061 int width, int height, GBool invert,
00062 GBool inlineImg);
00063 virtual void drawImage(GfxState *state, Object *ref, Stream *str,
00064 int width, int height, GfxImageColorMap *colorMap,
00065 int *maskColors, GBool inlineImg);
00066
00067 private:
00068
00069 char *fileRoot;
00070 char *fileName;
00071 GBool dumpJPEG;
00072 int imgNum;
00073 GBool ok;
00074 };
00075
00076 #endif
|