Is there a way to export the RadialGauge control to a bitmap?

I would like to use the radial gauge in some reports, and would like to make it a bitmap so that I can place it via code in those report documents.  Is there a way to do this?



3 Replies

KR Kannan R Syncfusion Team August 20, 2018 05:59 AM UTC



Hi Paul 
 
Thank you for Contacting Syncfusion Support. 
 
Yes, RadialGauge control can be exported as Bitmap file. Please make use of below code snippets for your reference.  
 
Code Snippet: [C#] 
 
 
Bitmap b = new Bitmap(this.radialGauge1.Width, this.radialGauge1.Height); 
this.radialGauge1.DrawToBitmap(b, new Rectangle(0, 0, b.Width, b.Height)); 
b.Save(saveDialog.FileName + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp); 
 
 
Please make use this sample for your reference.  

Sample: RadialGauge
 
 
Regards 
Kannan 



PK Paul Krueger August 20, 2018 07:46 AM UTC

Kannan -

Thanks very much for this code snippet, and for the quick response!

Best Regards,

Paul


KR Kannan R Syncfusion Team August 20, 2018 08:59 AM UTC

Hi Paul 
 
Thanks for your update.  
 
Please let us know if you need further assistance.  
 
Regards 
Kannan 


Loader.
Up arrow icon