How do you convert a bitmap image to an icon format?
What are the steps?
Thanks in advance.
>
> I am writing an icon editor module for my application. Would some one care to
> shed some light on this?
The .bmp and .ico formats are fully described in the Win31 on-line
help file shipped with most PC compilers.
- Chris
-============================================================================-
E-mail : true...@intellic.demon.co.uk : Listen ... do you smell something?
Tel : +44 (0)1344 305305 :
Fax : +44 (0)1344 305100 : I'll be back...
-============================================================================-
> I am writing an icon editor module for my application.
> Would some one care to
> shed some light on this?
> How do you convert a bitmap image to an icon format?
> What are the steps?
Start with StretchBlt to reduce your bitmap down to the icon size
you want (32x32, 16x16, etc,) and then build the icon with
CreateIcon API.
The icon file format use the structures:
ICONDIR,ICONDIRENTRY,BITMAPINFOHEADER,RGBQUAD
with a XOR mask and an AND masks.
Good Luck
Ernesto L. Aparcedo (nf...@ccmail.ceco.com)