SarahBenjamin Posted October 10, 2007 Report Share Posted October 10, 2007 I am new to chart development, and need some help in creating in memory bit maps. Basically I need to create bit maps for a month . Since we have 12 months, I need 12 bit maps, with rows and columns in it. Can someone please help me with it. Thanks -Sarah Quote Link to comment Share on other sites More sharing options...
Frank Posted October 11, 2007 Report Share Posted October 11, 2007 Please atttach a drawing of what you need. I am not familiar with the term "bit map" Quote Link to comment Share on other sites More sharing options...
SarahBenjamin Posted October 15, 2007 Author Report Share Posted October 15, 2007 Thanks for responding to my post. I want to save the chart as a bit map image and then want to use it in the bitmap object. Dont know how to do that. I have code till here MemoryStream objMemoryStream = new MemoryStream(); OuterChart.Export(ChartFX.WebForms. FileFormat.Png, objMemoryStream);Now I want to use it somehow like this Bitmap bmp = new Bitmap(objMemoryStream....But I dont know how to grab the image back from the memory stream. I want to use the image of chart for graphics purposes. Thanks for your help. -Sarah Quote Link to comment Share on other sites More sharing options...
Frank Posted October 15, 2007 Report Share Posted October 15, 2007 Oh I see. I feel stupid now! I didn't realize you meant Bitmap int the System.Drawing context, I thought you meant some kind of strange chart that plots bits in a map. Here is the code you need:MemoryStream objMemoryStream = new MemoryStream(); OuterChart.Export(ChartFX.WebForms.FileFormat.Png, objMemoryStream);... // Later Bitmap bmp = (Bitmap) Bitmap.FromStream(objMemoryStream);// Now you have the chart in an Bitmap object. Quote Link to comment Share on other sites More sharing options...
SarahBenjamin Posted October 22, 2007 Author Report Share Posted October 22, 2007 Thanks a bunch, that resolves the problem.. -Sarah Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.