|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
himanshu joshi
|
Mar 28, 2007 - 5:44 AM
|
hi
could you tell me how to load .gif file as splash screen
thanks himanshu
|
|
Technical Support
|
Mar 28, 2007 - 7:10 AM
|
At the moment there are two image formats supported in Prof-UIS: bmp and png. There is a CExtBitmap class, written from scratch, which supports 32-bit bitmaps (loading, saving, and serialization) and is 100% supported even on Windows 9x/NT4. There is another class, CExtBitmapSkin , which is derived from CExtBitmap and supports 32-bit png images. CExtBitmapSkin is implemented using the well known and free LibPNG and ZLib libraries.
It would not be a problem to use other libraries for reading GIF images but we are using mostly 32-bit images with alpha channel and lossless formats. So other formats have been considered redundant so far.
|
|
Suhai Gyorgy
|
Mar 28, 2007 - 6:24 AM
|
There’s a class called CImage, a shared class of MFC and ATL. It can load gif file and has HBITMAP member variable, so you can use it instead of CBitmap. If some function expects a pointer to a CBitmap object, use CBitmap::FromHandle, pass it your CImage HBITMAP, and use the returned CBitmap*:
CImage image; CBitmap* pBitmap = CBitmap::FromHandle(image.m_hBitmap);
In ProfStudio sample you can see the code needed to make a splash screen.
|
|