blob: 66d9ee342af5a1bdf17788806f4f6a2d9e5e82c4 [file] [log] [blame]
george8201f76872006-03-28 14:22:56 +00001/* Copyright (C) 2006 TightVNC Team. 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 * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
19 *
20 */
21
22// -=- ScaledDIBSectionBuffer.h
23
24#ifndef __RFB_WIN32_SCALED_DIB_SECTION_BUFFER_H__
25#define __RFB_WIN32_SCALED_DIB_SECTION_BUFFER_H__
26
27#include <rfb/ScaledPixelBuffer.h>
28
29#include <rfb_win32/DIBSectionBuffer.h>
30
31namespace rfb {
32
33 namespace win32 {
34
35 //
36 // -=- ScaledDIBSectionBuffer
37 //
38
39 class ScaledDIBSectionBuffer : public ScaledPixelBuffer, DIBSectionBuffer {
40 public:
41 ScaledDIBSectionBuffer(HWND window);
42 virtual ~ScaledDIBSectionBuffer() {};
43
44 int width() const { return scaled_width; }
45 int height() const { return scaled_height; }
46
47 virtual void setSrcPixelBuffer(U8 **src_data, int w, int h, PixelFormat pf=PixelFormat());
48 virtual void setPF(const PixelFormat &pf);
49 virtual void setSize(int w, int h);
50
51 protected:
52 virtual void recreateScaledBuffer();
53 };
54
55 };
56
57};
58
59#endif // __RFB_WIN32_SCALED_DIB_SECTION_BUFFER_H__