Slide 6
Slide 6 text
Image in code
// IBitmap is a type that provides basic image information such as dimensions
IBitmap profileImage = await BitmapLoader.Current.Load(imageBytes, null, null);
// ToNative always converts an IBitmap into the type that the platform
// uses, such as UIBitmap on iOS or BitmapSource in WPF
ImageView.Source = ViewModel.ProfileImage.ToNative();
// This works in a Portable Library, or even in your ViewModel
Var ProfileBackgroundAccentColor = new Color(255, 255, 255, 255);
ImageView.Background = ViewModel.ProfileBackgroundAccentColor.ToNativeBrush();