English 中文(简体)
如何展示 窗口7电话中的互联网图像?
原标题:How to display Images from internet in a windows phone 7 app?

我正在提出申请,通过打平RSS的饲料获取图像。 我想在接获屏幕后,在应用中相互淡化这种形象。 如何做? 是否需要在显示之前下载所有图像? 请解释。

感谢和

va

最佳回答
  • Parse you re RSS Feed to get the images URL s (using for exemple HTTPWebRequest)
  • Set the binding for the source of each of you images (since it s web based, I recommend LowProfileImageLoader which will load images in the background.
  • Create a SlideShow.xaml view, based on a pivot. Dynamically add Pivot items
  • On tap on a thumbnail, launch the SlideShow.xaml, at the specified index
问题回答

也许我不正确理解你的问题,但你应该能够把图像元素的源头直接提供给贵的RSS馈赠项目中规定的URI。

<Image x:Name="m_Image" Source="http://www.microsoft.com/silverlight/images/ms-silverlight-logo.png"/>

在改变项目时(通过打字),你可以很容易地从你的法典中抹掉图像的来源。

Uri uri = new Uri("...", UriKind.Absolute);
ImageSource imgSource = new BitmapImage(uri);
m_Image.Source = imgSource;

采用低Profile 图像传输(如Thomas Joulin和Mick N所提到)是将图像装入背景并保持国际标准化组织反应的良好途径。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签