O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Images

Displaying an image is one of the easier tasks in Silverlight. You simply need to add an Image element and set its Source property. However, there are some limitations that you need to understand.

The most obvious limitation is that the Image element supports just two image formats. It has full support for JPEG and fairly broad support for PNG (although it doesn't support PNG files that use 64-bit color or grayscale). The Image element does not support GIF files. There are two reasons for this omission—it allows the Silverlight download to remain that much slimmer, and it avoids potential confusion between the Silverlight animation model and the much more basic (and unsupported) animated GIF feature that's used on the Web.

It's also important ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required