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
|
|
|
|
1999-10-04 07:39:13 -04:00
|
|
|
HANDLE wxBitmapToDIB (HBITMAP hBitmap, HPALETTE hPal);
|
|
|
|
BOOL wxReadDIB(LPTSTR lpFileName, HBITMAP *bitmap, HPALETTE *palette);
|
|
|
|
HANDLE wxReadDIB2(LPTSTR lpFileName);
|
|
|
|
LPSTR wxFindDIBBits (LPSTR lpbi);
|
|
|
|
HPALETTE wxMakeDIBPalette(LPBITMAPINFOHEADER lpInfo);
|
1998-05-20 10:12:05 -04:00
|
|
|
|