1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dib.h
|
|
|
|
// Purpose: Routines for loading and saving DIBs
|
|
|
|
// Author: Various
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Save (device dependent) wxBitmap as a DIB
|
1999-06-10 14:12:13 -04:00
|
|
|
bool wxSaveBitmap(wxChar *filename, wxBitmap *bitmap, wxColourMap *colourmap = NULL);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// Load device independent bitmap into device dependent bitmap
|
1999-06-10 14:12:13 -04:00
|
|
|
wxBitmap *wxLoadBitmap(wxChar *filename, wxColourMap **colourmap = NULL);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// Load into existing bitmap;
|
1999-06-10 14:12:13 -04:00
|
|
|
bool wxLoadIntoBitmap(wxChar *filename, wxBitmap *bitmap, wxColourMap **pal = NULL);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
HANDLE BitmapToDIB (HBITMAP hBitmap, HPALETTE hPal);
|
1999-06-14 03:12:16 -04:00
|
|
|
BOOL ReadDIB(LPSTR lpFileName, HBITMAP *bitmap, HPALETTE *palette);
|
|
|
|
HANDLE ReadDIB2(LPSTR lpFileName);
|
|
|
|
LPSTR FindDIBBits (LPSTR lpbi);
|
1998-05-20 10:12:05 -04:00
|
|
|
HPALETTE MakeDIBPalette(LPBITMAPINFOHEADER lpInfo);
|
|
|
|
|