I have a image I get from a canvas in the page. Like below..
var myimg = mycanvas.toDataURL("image/png");
document.write('<img src="' + myimg + '"/>');
How can I set myimg to a STIImage objects source?
Thank you in advance.
Pass canvas image to report
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Pass canvas image to report
Thanks for the reply. In my situation I don't have the image in the file. I have an out of canvas.toDataURL("image/png");Lech Kulikowski wrote: ↑Fri Oct 04, 2019 2:24 pm Hello,
Please check the following topic:
viewtopic.php?t=55583
Thank you.
Please share some sample code on how do I pass that information to a STIImage control. Thanks
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Pass canvas image to report
Hello,
We will try to find a solution for you, we need some time.
Thank you.
We will try to find a solution for you, we need some time.
Thank you.
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Pass canvas image to report
Hello,
You can use the following code:
Thank you.
You can use the following code:
Code: Select all
var sampleImage = new Stimulsoft.Report.Components.StiImage();
sampleImage.image = Stimulsoft.Base.Drawing.StiImageConverter.stringToImage("base64image");