All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
private
void
ExportToImage()
{
SaveFileDialog saveImage =
new
SaveFileDialog();
saveImage.Filter =
"Bitmap (*.bmp)|*.bmp|PNG (*.png)|*.png"
;
if
(saveImage.ShowDialog() ==
true
)
BitmapEncoder encoder =
null
(saveImage.SafeFileName.ToLower().EndsWith(
".png"
))
encoder =
PngBitmapEncoder();
}
else
BmpBitmapEncoder();
using
(Stream fileStream = saveImage.OpenFile())
ExportExtensions.ExportToImage(
this
.radGauge, fileStream, encoder);