List Info

Thread: ImageList.Draw and clipping




ImageList.Draw and clipping
country flaguser name
Spain
2007-08-16 12:12:07
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-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winform
s-list

Re: ImageList.Draw and clipping
country flaguser name
Hungary
2007-08-16 12:49:54
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" <dsuarezvcodicesoftware.com>
To: <mono-winforms-listlists.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-listlists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winform
s-list 

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winform
s-list

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )