Пример #1
0
 /// <inheritdoc />
 public Task <IBitmap> LoadFromResource(string source, float?desiredWidth, float?desiredHeight)
 {
     return(Task.Run(() =>
     {
         var ret = new TizenBitmap(source);
         return (IBitmap)ret;
     }));
 }
Пример #2
0
 /// <inheritdoc />
 public Task <IBitmap> Load(Stream sourceStream, float?desiredWidth, float?desiredHeight)
 {
     return(Task.Run(() =>
     {
         var ret = new TizenBitmap(((MemoryStream)sourceStream).ToArray());
         return (IBitmap)ret;
     }));
 }