public static ImageSource FromPath(string path, FFImageSourceOptions options = null) { FFImageSource.AssemblyCache = FFImageSource.AssemblyCache ?? Assembly.GetCallingAssembly(); return(FFImageSource.Create(path, options)); }
public static SvgExImageSource FromSvgResource(string resource, int vectorWidth = 0, int vectorHeight = 0, Color fillColor = default(Color)) { FFImageSource.AssemblyCache = FFImageSource.AssemblyCache ?? Assembly.GetCallingAssembly(); return(new SvgExImageSource(null, fillColor, new EmbeddedResourceImageSource(FFImageSource.GetRealResourcePath(resource), FFImageSource.AssemblyCache), vectorWidth, vectorHeight, true, GetReplaceStringMapForFillColor(fillColor))); }