Hi to everybody!
We are trying to export a Canvas to an image in some formats.
Actually we reach our goal with this simple code line:
where MainCanvas is a subclass of a Canvas and the SetEmptyStream function returns an empty stream.
Everything works but while creating the image, with large canvas, also with few children the Memory usage
of iexplorer.exe reaches 700/800 MB and IE crashes for OUT OF MEMORY exception.
The process also takes so much time to complete.
Maybe it is a normal behavior when working with images... but...
Anyone knows some workaround to avoid this? the PNG format is not mandatory...
Thanks to everybody!
We are trying to export a Canvas to an image in some formats.
Actually we reach our goal with this simple code line:
Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(
MainCanvas,
SetEmptyStream(ms),
new
Telerik.Windows.Media.Imaging.PngBitmapEncoder());
where MainCanvas is a subclass of a Canvas and the SetEmptyStream function returns an empty stream.
Everything works but while creating the image, with large canvas, also with few children the Memory usage
of iexplorer.exe reaches 700/800 MB and IE crashes for OUT OF MEMORY exception.
The process also takes so much time to complete.
Maybe it is a normal behavior when working with images... but...
Anyone knows some workaround to avoid this? the PNG format is not mandatory...
Thanks to everybody!