dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Rectangle.Union


From: Marc Haisenko
Subject: Re: [Pnet-developers] Rectangle.Union
Date: Thu, 25 Aug 2005 10:02:05 +0200
User-agent: KMail/1.8.1

On Thursday 25 August 2005 09:03, Miroslaw Dobrzanski-Neumann wrote:
> Hi,
>
> is this a bug or feature?
>
> using System.Drawing;
>
> Rectangle r = Rectangle.Union (Rectangle.Empty, new Rectangle (1,1,1,1));
> r is now
> {0, 0, 2, 2}

The behaviour on MS.NET is the same, so this is not a bug.

> I would expect
> {1, 1, 1, 1}
> because union with nothing an identity transform

I'd expect that as well, but I guess .NET interprets the term 
"Rectangle.Empty" differently than we humans do ;-)

> Regards

C'ya,
        Marc

-- 
Marc Haisenko
http://darkdust.net
Today is Boomtime, the 18th day of Bureaucracy in the YOLD 3171

Attachment: pgpyT3aaJ2lrC.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]