Exemplo n.º 1
0
 /// <inheritdoc />
 public Task <IBitmap> LoadFromResource(string source, float?desiredWidth, float?desiredHeight)
 {
     return(Task.Run(() =>
     {
         var ret = new TizenBitmap(source);
         return (IBitmap)ret;
     }));
 }
Exemplo n.º 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;
     }));
 }