AIMTO DYNAMICLY Produce A Pie Chart in ASP.NET Using The System.drawing Namespace.here Is What We will Hopefully End Up with:
What is GDI ? GDI is a set of classes in the System.Drawing Namespace to draw images' on the fly'Let's get going! In this tutorial I am going to use inline code, this will still work with code behind.> Start the Page and Import Required Namespaces.
Source Code:
<% @ Page language = "vb" contenttype = "image / jpeg"%> <% @ import namespace = "system.drawing"%> <% @ import namespace = "system.drawing.Imaging"%> <% @ import Namespace = "system.drawing.drawing2d"%>
You Will Notice That
ContentType for this page is set to "image / jpeg". This is because we need to tell the browser That this is an image not html.
> Start Writing The Code for this Webform
Source Code: