Пример #1
0
 public static ImageSource ToImageSource(this Icon icon) => ExtendedMethods.HBitmapToImageSource(icon.ToBitmap().GetHbitmap());
Пример #2
0
 public static ImageSource ToImageSource(this Bitmap bitmap) => ExtendedMethods.HBitmapToImageSource(bitmap.GetHbitmap());