There is an article in the FAQ about the tested maxima for the GDI+ surface.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
I saw a previous post with this same basic question back in 2005 but
it doesn’t look like anyone really answered the question of what the
max is. I also found it (empirically) to be about 1.1. billion but I
don’t feel right hard coding an empirically found number.
In my situation I’m writing a program to plot time based data. The
user has the option of auto-scaling or manually scaling the Y axis. I
force max to always be greater than min but there are many legitimate
situations where min and max are very very close in some of the data
and then when they shift the view by a few minutes it’s very large
e.g. a device under vacuum at around 1e-10 Torr scale and then
suddenly jumping to atmosphere at ~760 Torr. So in this situation I
basically just want to not plot the data since it’s way outside the
range. But I just want to know what the cutoff should be when my
scaling is in pixels?
Israel - 20 May 2008 14:29 GMT
On May 9, 2:49 am, "Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net>
wrote:
> There is an article in the FAQ about the tested maxima for the GDI+ surface.
Thanks. I think it's kind of silly that there's an undocumented limit
and that anyone would think that it's so large that it doesn't
matter. Trying to plot things in many different scientific realms
could easily hit this limit that's just not obvious. I wish I could
just consider it a black box that will magically do all of my clipping
for me. If I had an application that had a lot of shapes completly
outside my viewing area then that's a different story and I would take
the effort to do my own pre-clipping.