public static From ( Stream bitmapStream ) : |
||
bitmapStream | Stream | |
return |
public static PlatformBitmap From(string filename) { using (FileStream stream = new FileStream(filename, FileMode.Open, FileAccess.Read)) { return(PlatformBitmap.From(stream, IsOpaque(filename))); } }
public static PlatformBitmap FromResource(string name) { Assembly ass = Assembly.GetCallingAssembly(); Stream stream = ass.GetManifestResourceStream(string.Format("{0}.{1}", ass.GetName().Name, name)); if (stream == null) { stream = ass.GetManifestResourceStream(name); } return(PlatformBitmap.From(stream, IsOpaque(name))); }