Hi,

.NET Framework uses Windows common controls image list while Mono uses a 
fully managed image list implementation.

.NET Framework probably draws images using ImageList_DrawEx that uses a HDC 
returned Graphics.GetHdc.

Mono's image list uses Graphics.DrawImage function that provides more rich 
feature set than an HDC.

Setting a new clip rectangle and reverting to the original should be 
possible but I'm not sure it's wort to do.

Kornél

----- Original Message ----- 
From: "David Suárez" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 16, 2007 7:12 PM
Subject: [Mono-winforms-list] ImageList.Draw and clipping


> Hi all,
>
> There seems to be a subtle difference in behavoir from .NET to mono in the
> ImageList.Draw method. If Graphics clipping has been specified and
> imageList.Draw is told to draw the image outside the clipping area, .NET
> draws the image, but mono won't.
>
> I guess mono has the right behavior here, yet it is different from .NET.
>
> Cheers
>
> David
> www.codicesoftware.com
>
>
>
> _______________________________________________
> Mono-winforms-list maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list 

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to