How can I dynamic display the image on PDF?

I need to load the image from file (take by camera and saved in local), but I can't find the ways for that, the normal way just can pass the stream to PdfBitmap as below:

Stream imageStream = typeof(App).GetTypeInfo().Assembly.GetManifestResourceStream("Test.asset.Xamarin_JPEG.jpg");
PdfImage image = new PdfBitmap(imageStream);

but how can I get the image from file by path?

Thanks!

2 Replies

WI Winson January 31, 2020 05:45 AM UTC

Ok, I have sloved my problem, just need to use the FileStream to load the image file and will be ok


SL Sowmiya Loganathan Syncfusion Team January 31, 2020 07:17 AM UTC

  
Hi Winso, 
 
We glad to know that your requirement is achieved.  
 
Regards, 
Sowmiya Loganathan 


Loader.
Up arrow icon