-1

我将解释我想要做什么:让我们以这张照片为例。我想下载这张图片并在我的应用程序中使用图片框打开它。我想我需要使用
Bitmap bitmap = new Bitmap(xxxx); ,我应该在“xxxx”的地方放什么?我看到的脚本是用 Delphi 编写的,看起来像这样:

Value := copys (searchPage, '<link rel="image_src" href="', '">');
GetPicture (Value);

有什么建议吗?

4

1 回答 1

1
Image i = new Image();
BitmapImage src = new BitmapImage();
src.BeginInit();
src.UriSource = new Uri("http://i.stack.imgur.com/glbMA.jpg");
src.EndInit();
i.Source = src;
于 2013-04-08T19:52:49.983 回答