Michael Kaply ha scritto:

>Warpzilla is the project.
>
>Mozilla is the browser.
>
>In order to maintain consistency with other version of Mozilla, I gave us the
>same splash screen and icons.
>
>On Windows, it is very easy to have your own splash screen because Windows has
>an API that will create a Windows HBMP from a file on the disk.
>
>If anyone has an OS/2 API like WinLoadBitmapFromFile, I can add this
>functionality to the OS/2 browser.
>


I wrote a program (some year ago) that reads a BMP from an Hard disk 
(and uses some filter
to identify some objects on the BMP). Is not a perfect code (is little 
poor), but if you want you
can use (and change) it.

Links:

source: 
http://hellspawn.dnsalias.net/~mircomir/pallet/src/pallet0.3-source.zip
binary: 
http://hellspawn.dnsalias.net/~mircomir/pallet/binary/pallet0.3-binary.zip

Main page (italian):
http://hellspawn.dnsalias.net/~mircomir/pallet/index.html

There is a   
     BMPIMAGE *BmpfReadBitmap(FILE *f, BMPIMAGE *pi)
function in core.c module that uses a Windows bitmap header (if I 
remember correctly):

/* Windows bitmap header */
typedef struct  BMPHeader {
  ULONG  cbFix;          /* Dimensione di questa header (40Byte)         */
  ULONG  cx;             /* Larghezza immagine in pixel                  */
  ULONG  cy;             /* Altezza   immagine in pixel                  */
  USHORT cPlanes;        /* sempre uguale a 1 (num. piani)               */
  USHORT cBitCount;      /* N. Bit Plain per pixel (1,4,8,24)            */
  ULONG  ulCompression;  /* Compressione (0,1,2)                         */
  ULONG  cbImage;        /* Byte totali immagine                         */
  ULONG  cxResolution;   /* Pixel per metro orrizzontali                 */
  ULONG  cyResolution;   /* Pixel per metro verticali                    */
  ULONG  cclrUsed;       /* Colori Usati                                 */
  ULONG  cclrImportant;  /* Colori Importati                             */
} BMPHEADER;



typedef struct BMPImage {
   BMPHEADER     *bmph;
   BMPPALETTERGB *ppal;
   UBYTE         *data;
} BMPIMAGE;


-- 

ciao, Mirco.

[ http://hellspawn.dnsalias.net/~mircomir/ ] [ Icq#:51640305 ]
[ http://www.quasarbbs.net/pido2/ ]



Reply via email to