Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is the icon file format?

0 views
Skip to first unread message

Leng Vang

unread,
Oct 26, 1995, 3:00:00 AM10/26/95
to

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?

Thanks in advance.

Chris Trueman

unread,
Oct 27, 1995, 3:00:00 AM10/27/95
to
In article <46os41$n...@alpha.mrs.umn.edu>
va...@soils.mrsars.usda.gov "Leng Vang" writes:

>
> 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...
-============================================================================-

Ernesto L. Aparcedo

unread,
Oct 28, 1995, 3:00:00 AM10/28/95
to va...@soils.mrsars.usda.gov
va...@soils.mrsars.usda.gov (Leng Vang) wrote:

> 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)


0 new messages