From: SourceForge.net <no...@so...> - 2007-05-30 22:17:27
|
Feature Requests item #1728620, was opened at 2007-05-30 15:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1728620&group_id=161868 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Input parameter validation Initial Comment: This took way too long and it's obviously my fault, but some input parameter validation (and according error throwing capability) would be nice. I didn't set the height or width in the NPlot.Web.PlotSurface2D object I was using and kept getting a "Parameter is not valid" error. This error comes from the first line of the Render() method accessing the height and width members to render the bitmap: System.Drawing.Bitmap b = new System.Drawing.Bitmap( (int)this.Width.Value, (int)this.Height.Value ); Once I set some required properties everything seemed to work pretty well. I like and I'm impressed. Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821571&aid=1728620&group_id=161868 |