blob: 1a9ff1cc5665f987a0234b68c147697ff511674e [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001/* Copyright (C) 2002-2003 RealVNC Ltd. All Rights Reserved.
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 */
18//
19// Image.h
20//
21
22#ifndef __IMAGE_H__
23#define __IMAGE_H__
24
25#include <X11/Xlib.h>
26#include <X11/extensions/XShm.h>
27
28class Image {
29
30public:
31
32 Image(Display* dpy, int width, int height);
33 ~Image();
34
35 void get(Window w);
36
37 XImage* xim;
38
39private:
40
41 bool createShmImage(int width, int height);
42
43 Display* dpy;
44 XShmSegmentInfo* shminfo;
45 bool usingShm;
46};
47
48#endif