- Posts: 3
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
Cordova, Xamarin, Basic4Android topics are listed here.
RenderToBmp Xamarin iOS
IP: 192.168.0.71
8 years 11 months ago #12160
by fablhe
RenderToBmp Xamarin iOS was created by fablhe
Hi,
Actually, i'm trying to use RenderToBmp(CGImageRef img) in a Xamarin.iOS project to convert a PDF Page to an image.
It seems that there is no CGImageRef in Xamarin iOS so what can I do to use RenderToBmp in that project ?
Otherwise, do you have another solution to convert a PDFDoc page to a CGImage or an UIImage ?
Cheers,
Fabien.
Actually, i'm trying to use RenderToBmp(CGImageRef img) in a Xamarin.iOS project to convert a PDF Page to an image.
It seems that there is no CGImageRef in Xamarin iOS so what can I do to use RenderToBmp in that project ?
Otherwise, do you have another solution to convert a PDFDoc page to a CGImage or an UIImage ?
Cheers,
Fabien.
IP: 192.168.0.71
8 years 11 months ago #12161
by emanuele
Replied by emanuele on topic RenderToBmp Xamarin iOS
Hi,
we just added the GetImageForPage method that allows you to get the image of a specific page (natural size).
You can update the Xamarin project from the repository
we just added the GetImageForPage method that allows you to get the image of a specific page (natural size).
You can update the Xamarin project from the repository
IP: 192.168.0.71
8 years 11 months ago #12177
by fablhe
Replied by fablhe on topic RenderToBmp Xamarin iOS
Thanks for your answer !
I've tried some different things to use GetImageForPage in my Xamarin.iOS project but I have always null as result of the function.
Can you just provide me a kind of example to help me use it ? I'm just trying to open a pdf from a path with OpenFromPath and after I'm calling GetImageForPage to retrieve the image data.
Thanks in advance,
Fabien.
I've tried some different things to use GetImageForPage in my Xamarin.iOS project but I have always null as result of the function.
Can you just provide me a kind of example to help me use it ? I'm just trying to open a pdf from a path with OpenFromPath and after I'm calling GetImageForPage to retrieve the image data.
Thanks in advance,
Fabien.
IP: 192.168.0.71
8 years 11 months ago #12179
by emanuele
Replied by emanuele on topic RenderToBmp Xamarin iOS
Hi,
the Xamarin demo project contains also an example of how to get the image of a page, is a commented slice of code at line 121 of ViewController class
the Xamarin demo project contains also an example of how to get the image of a page, is a commented slice of code at line 121 of ViewController class
Time to create page: 0.399 seconds