Esempio n. 1
0
 public static async Task<StateDefinition> FromImageSource(ImageSource source, ImageFormat format, IEnumerable<State> enabled = null, IEnumerable<State> disabled = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     var image = await source.LoadAsync(cancellationToken, format);
     return new StateDefinition(image, enabled, disabled);
 }