Can the HubTile Source property be set to a GIF? - windows-phone-7

I'm building an app that generates a grid of HubTile objects from the Silverlight Toolkit representing people, with the Source property being set to a URL for their profile picture that's returned from a web service. If the person hasn't uploaded a profile picture, the URL that's returned is a GIF for a generic profile picture. It appears that the HubTile simply ignores the Source, because the image isn't being displayed. I've verified that the image exists at the provided URL. Are GIF's simply an unsupported image type for the HubTile? Unfortunately, the documentation on Codeplex is empty.

No, GIF images are not supported. From "Tiles Overview for Windows Phone":
Tile images can be either a .jpg or .png file
If you are referring to the HubTile control, it uses an Image under the hood which does not support GIFs either. As per Supported Media Codecs for Windows Phone
This file type [GIF] is unsupported by the Silverlight Image element

Related

Use a PDF for iOS application icon

For asset catalog icons, Xamarin lets specify a single PDF, and it does all the bitmap conversion for you.
Is there a similar method available for the application icons? It would be nice to not have to generate by hand all the different sizes required?

Opening an image in TImage from a server

I am working on a huge project using Delphi XE5, the core of the program is to open an image using the TImage component on the application but the image is on a server that is accessed trough the internet. The image that displays depends on the criteria set trough other events or actions from the user. I already have the criteria's code etc in place, I only neet die Image display part..
What other components do I need to use other than TImage component to make this happen and how does one do this? I have been searching for answers for more than a week and couldn't find something that works.
This is also a multi platform application.
Found what I was looking for at FireMonkey iOS RAD Studio XE2 - Display Image on form loaded from URL although its a bit slow, but for now it can do the job just fine.
Well you can load a TBitmapImage or TJPEGImage from a stream and then stick it into your TImage. However, you will need to know the image type before you do this. Here is an example using TJPEGImage: JPEG data-stream to TImage

how to display the gif image in windows phone by not using web browser

how to show the gif image in windows phone 7, i tried from many site, but they have done only by using web browser to view the gif image. now i want to view the gif image by not using of web browser control, usually have to view the gif image as jpeg image in windows phone 7. how to do Please help me
Thanks in advance.
u cant render directly the gif image in wp7 & so u can decode it to the bitmap image to show
ther are many links to show how to convert gif into bitmap, take a look at these--->
Display GIF in a WP7 application with Silverlight
http://blogs.msdn.com/b/jaimer/archive/2010/11/23/working-with-gif-images-in-windows-phone.aspx

WP7: Accessing image data of WebBrowser control

I've got a WebBrowser on my phone UI (from Microsoft.Phone.Controls), showing web page with images. How do I access the html image binary data?
I want to store the image for later rendering, and perhaps do some image transformations for it too.
You cannot do that since WebBrowser control is pretty much sandboxed and you don't have access to DOM or anything inside it.
EDIT: You can at least get the HTML source for the page and you could then parse the source, extract urls for images and then manually download them. You can get the source via the WebBrowser.SaveToString method

Embedded WMP control - how to get resolution of current playing file?

I have a Windows Media Player control embedded inside my webpage, I feed it some URL to stream from (ASF file).
How can I get from the WMP control the resolution in pixels of the file being played?
Thanks
Roey
I had a look on MSDN and looks like the WMP object model has some properties which might give you the height and width.
You need to embed the control in a page and use JavaScript to access these properties.

Resources