Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Vector image in portable solution

$
0
0

I was wondering if it was possible to use vector images for a cross-platform program or is this ios only.?
I was trying to follow the following guide to display images.
https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_images/displaying-an-image/#Adding_Images_to_a_Asset_Catalog_Image_Set
I added the vector image by following the guide , then in my portable lib i have the following code
Image img = new Image
{
Source = ImageSource.FromFile("image.pdf")
};
The image does not display.(I also tried ImageSource.FromFile("image.png") ImageSource.FromFile("image"))
Any help would be appreciated.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>