X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_53,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A4CF684.9010308@users.sourceforge.net>
Date: Thu, 02 Jul 2009 13:03:48 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Best way to create Windows .ico file for Emacs?
References: <E0529A8FFC2C9143A5F1BB9A89101D060617347C@BD01MSXMB018.US.Cingular.Net> <4A4CF13C.7070807@users.sourceforge.net> <E0529A8FFC2C9143A5F1BB9A89101D060617349F@BD01MSXMB018.US.Cingular.Net>
In-Reply-To: <E0529A8FFC2C9143A5F1BB9A89101D060617349F@BD01MSXMB018.US.Cingular.Net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 02/07/2009 12:53, KARR, DAVID (ATTCINW) wrote:
> Perhaps this isn't actually an XPM file?  The header looks like this:
>
> /* Format_version=1, Width=64, Height=64, Depth=1,
> Valid_bits_per_item=16
>   */
> 	0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x8000,0x0000,0x0000,0x0001,
> 	0x8000,0x0000,0x007E,0x1C01,0x8000,0x0000,0x0006,0x1C01,
>

No, that's definitely not an XPM.  I would search the sources and see 
how this is used; I suspect this is #include'd somewhere.

However, emacs includes emacs.png's and emacs.svg which are installed 
into the hicolor-icon-theme.  Why not use those?  You have two options:

1) Use convert(1) for a 1->1 conversion.

2) In Ports, png2ico(1) allows embedding multiple images (e.g. different 
sizes) into an ICO.


Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

