summaryrefslogtreecommitdiff
path: root/poppler/CairoOutputDevImage.h
blob: 5911c9293157dad576c43d479132a557df99a363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//========================================================================
//
// CairoOutputDevImage.h
//
// Copyright 2003 Glyph & Cog, LLC
// Copyright 2004 Red Hat, INC
//
//========================================================================

#ifndef CAIROOUTPUTDEVIMAGE_H
#define CAIROOUTPUTDEVIMAGE_H

#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif

#include "splash/SplashTypes.h"
#include "CairoOutputDev.h"
#include "GfxState.h"

//------------------------------------------------------------------------
// CairoOutputDevImage
//------------------------------------------------------------------------

class CairoOutputDevImage: public CairoOutputDev {
public:

  // Constructor.
  CairoOutputDevImage(void);

  // Destructor.
  virtual ~CairoOutputDevImage();

  virtual void createCairo(GfxState *state);

  void getBitmap(unsigned char **data,
		 int *width, int *height, int *rowstride);
  
private:
  unsigned char *pixels;
  int pixels_w, pixels_h;
};

#endif