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" <dsuarezv codicesoftware.com>
To: <mono-winforms-list lists.ximian.com>
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 - Mono-winforms-list lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winform
s-list
_______________________________________________
Mono-winforms-list maillist - Mono-winforms-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winform
s-list
|