w32utils.h 704 Bytes
Newer Older
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
/** \file w32utils.h
    \brief misc windows utility functions

    CoolReader Engine


    (c) Vadim Lopatin, 2000-2006
    This source code is distributed under the terms of
    GNU General Public License.

    See LICENSE file for details.

*/

#ifndef __W32_UTILS_H_INCLUDED__
#define __W32_UTILS_H_INCLUDED__

#if !defined(__SYMBIAN32__) && defined(_WIN32)

#include "lvfnt.h"
#include "lvdrawbuf.h"

extern "C" {
#include <windows.h>
}

/// draw gray bitmap buffer to Windows device context
void DrawBuf2DC(HDC dc, int x, int y, LVDrawBuf * buf, COLORREF * palette, int scale=1 );
/// save gray bitmap to .BMP file
void SaveBitmapToFile( const char * fname, LVGrayDrawBuf * bmp );


#endif

#endif