Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / May 2008

Tip: Looking for answers? Try searching our database.

What is the Max pixel value for DrawLine()?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Israel - 05 May 2008 22:07 GMT
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?
Bob Powell [MVP] - 09 May 2008 07:49 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.