//$ LB (13/06/2002) : added to fit with the new objbitmap structure and GDI management

#ifndef _BITMAP_H_
#define _BITMAP_H_



#include <windows.h>
#include "../x/objstr.h"


typedef struct BitmapInfo2
{
    BITMAPINFO Bit ;
    RGBQUAD Quad [ 256 ] ;
} BitmapInfo2 ;

typedef struct LPalette2
{
    WORD    Version ;
    WORD    ColorNum ;
    PALETTEENTRY Colors [256 ] ;
} LPalette ;

//$LB (16/12/2003)
void CaptureScreen (PtrObjBitmap B, int x, int y, int w, int h);

// create an objbitmap with a dibsection
void ObjBitmap_NewDIBSection (PtrObjBitmap B,PtrPalette P);

//$LB added 16/01/2004
int ObjBitmap_New ( PtrObjBitmap B , PtrPalette P );


#endif

