bmp.h

Go to the documentation of this file.
00001 ///
00002 /// \file       bmp.h
00003 ///             BMP conversion routines
00004 ///
00005 
00006 /*
00007     Copyright (C) 2009-2012, Net Direct Inc. (http://www.netdirect.ca/)
00008 
00009     This program is free software; you can redistribute it and/or modify
00010     it under the terms of the GNU General Public License as published by
00011     the Free Software Foundation; either version 2 of the License, or
00012     (at your option) any later version.
00013 
00014     This program is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018     See the GNU General Public License in the COPYING file at the
00019     root directory of this project for more details.
00020 */
00021 
00022 #ifndef __BARRY_BMP_H__
00023 #define __BARRY_BMP_H__
00024 
00025 #include "dll.h"
00026 #include <sys/types.h>
00027 #include <stdint.h>
00028 
00029 namespace Barry {
00030 
00031 class Data;
00032 class JLScreenInfo;
00033 
00034 BXEXPORT size_t GetBitmapHeadersSize();
00035 BXEXPORT size_t GetTotalBitmapSize(const JLScreenInfo &info);
00036 BXEXPORT void ScreenshotToRGB(const JLScreenInfo &info,
00037         const Data &screenshot, Data &buffer, size_t offset,
00038         int depth, bool invert,
00039         bool overwrite_alpha = false, uint8_t alpha = 0xFF);
00040 BXEXPORT void ScreenshotToBitmap(const JLScreenInfo &info,
00041         const Data &screenshot, Data &bitmap);
00042 
00043 }
00044 
00045 #endif
00046