1>D:\Visual Studio\Plugin\Aspose.Drawing-for-.NET-master\Examples\CSharp\Licensing\Licensing.cs(40,28,40,35): error CS0234: The type or namespace name ‘Metered’ does not exist in the namespace ‘Aspose.Drawing’ (are you missing an assembly reference?)
1>D:\Visual Studio\Plugin\Aspose.Drawing-for-.NET-master\Examples\CSharp\Licensing\Licensing.cs(40,65,40,72): error CS0234: The type or namespace name ‘Metered’ does not exist in the namespace ‘Aspose.Drawing’ (are you missing an assembly reference?)
1>D:\Visual Studio\Plugin\Aspose.Drawing-for-.NET-master\Examples\CSharp\Licensing\Licensing.cs(47,30,47,52): error CS0234: The type or namespace name ‘Metered’ does not exist in the namespace ‘Aspose.Drawing’ (are you missing an assembly reference?)
1>D:\Visual Studio\Plugin\Aspose.Drawing-for-.NET-master\Examples\CSharp\Licensing\Licensing.cs(48,31,48,53): error CS0234: The type or namespace name ‘Metered’ does not exist in the namespace ‘Aspose.Drawing’ (are you missing an assembly reference?)
@12344321,
You may please download the example solution here:
Then you may update the reference to the latest library using NuGet package manager. It will compile solution and no error is raised. Please give it a try and share the feedback.
This error is caused due to missing license. You may please load a valid license before running example code to avoid this error. If you do not have a valid license and want to test this product without any evaluation limits, please get a free 30 days temporary license.
You may try the following sample code to draw curves on canvas and share your feedback.
Bitmap bitmap = new Bitmap(1000, 800, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
Graphics graphics = Graphics.FromImage(bitmap);
Pen pen = new Pen(Color.FromKnownColor(KnownColor.Blue), 2);
graphics.DrawClosedCurve(pen, new Point[] { new Point(100, 700), new Point(350, 600), new Point(500, 500), new Point(650, 600), new Point(900, 700) });
bitmap.Save(@"DrawClosedCurve_out.png");
@12344321,
I am afraid that no such visual component/control is available that can be directly used for drawing however, you may write your own program where an existing bitmap is loaded or a new bitmap is created from scratch and then mouse/keyboard events are captured for drawing over the bitmap. Similarly you can create a new bitmap also and then get user data through keyboard/mouse or manual input for drawing. Please feel free if you have any other query related to Aspose.Drawing.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.