[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: ANNOUNCE: ICO Icon format support for kde
From:       Richard Moore <moorer () cs ! man ! ac ! uk>
Date:       1998-06-19 10:32:57
[Download RAW message or body]

On Wed, 17 Jun 1998, Rupert Eibauer wrote:

> Thomas Tanghus schrieb:
> > 
> > On Tue, 16 Jun 1998, Rupert Eibauer wrote:
> > >I'm actually writing on a library for accessing icons in the
> > >Windows ICO format and I want to include it in kiconloader.
> > >
> > 
> > Is it written so that it can be used by QImageIO::defineIOHandler? Then I
> > could let kiconedit work with ICO format as well.
> > 
> 
> nope. But since you gave me this hint, I will take a look at it.

Please do try making it into an IO handler - it makes things much easier.
If you look at the format manager class and any of the handlers in kpaint
you should have a pretty good idea of what's needed.

Rich.

> There are actually two ways for loading an icon in my porgamm:
> 1. - get info about which formats are in the file
>    - Decide, which of them to load
>    - load it
> 2. - Loading with preferred size specified 
>      QPixmap LoadICO(char* filename, int width, int height)
>      (nearest size and max colors will be loaded)
> 
> example:
> winlogo.ico has 6 icons:
> 32x32 16 colors
> 16x16 16 colors
> ...
> 22x2 16 colors
> 

 _______________________________________________________________________ 
| Richard Moore                         | Email: richard@cs.man.ac.uk   |
| IT301, Computer Science dept.,        |           rich@kde.org        |
| University of Manchester, Oxford Rd., | Phone: (0161) 438 0038 (home) |
| Manchester, M13 9PL                   |        (0161) 275 6270 (work) |
| UK                                    |        (0161) 275 6280 (fax)  |
|_______________________________________|_______________________________|

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic