From() публичный статический Метод

public static From ( Stream bitmapStream ) : PlatformBitmap
bitmapStream Stream
Результат PlatformBitmap
Пример #1
0
 public static PlatformBitmap From(string filename)
 {
     using (FileStream stream = new FileStream(filename, FileMode.Open, FileAccess.Read))
     {
         return(PlatformBitmap.From(stream, IsOpaque(filename)));
     }
 }
Пример #2
0
        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)));
        }