1. 程式人生 > >讀取本地圖片 BitmapImage

讀取本地圖片 BitmapImage

BitmapImage defImage = new BitmapImage();
defImage.BeginInit();
defImage.UriSource = new Uri(@"H:\xxxx\xxxxx\xxxxxxxx\38dbb6fd5266d0163b0d0bd49c2bd40735fa3531.jpg", UriKind.RelativeOrAbsolute);
defImage.EndInit();