[Mono-dev] System.Drawing.SystemIcons.cs

Peter Dennis Bartok peter at novonyx.com
Tue Nov 29 10:57:07 EST 2005


It is deliberate. Icons have special masks that this code handles that is 
not part of regular bitmaps, otherwise the standard bitmap code would have 
been called.
Assuming that there are no bugs in the encoder I see no reason to plug in 
another, as there's only one format it is supposed to handle, and that 
format is handled.

Cheers,
  Peter

-----Original Message-----
From: "Konstantin Triger" <kostat at mainsoft.com>
To: "Peter Dennis Bartok" <peter at novonyx.com>; 
<mono-devel-list at lists.ximian.com>
Date: Tuesday, 29 November, 2005 00:58
Subject: RE: [Mono-dev] System.Drawing.SystemIcons.cs


1. I may want to plug some 3rd party or an encoder.
2. This will give a unified architecture.
3. This will make the ToBitmap method to return the internal object
instead of serializing / deserializing to BMP.

But actually I wondered whether this was made deliberately or is an
historic issue.

Regards,
Konstantin Triger


-----Original Message-----
From: Peter Dennis Bartok [mailto:peter at novonyx.com]
Sent: Tuesday, November 29, 2005 9:20 AM
To: Konstantin Triger; mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] System.Drawing.SystemIcons.cs

> BTW, does someone know why Icon.cs has its codec inside and does not
use
> a pluggable mechanism, like other codecs do?
Not sure what that would achieve. What codecs do you want to plug in?
The
Icon format is defined by MS.

Cheers,
  Peter






More information about the Mono-devel-list mailing list