
752
|
Chapter 40: The System.Web.UI.MobileControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Implemented By
IPageAdapter, System.Web.UI.MobileControls.Adapters.ControlAdapter
Returned By
MobileControl.Adapter, MobilePage.GetControlAdapter( )
Image
System.Web.UI.MobileControls (system.web.mobile.dll)
.NET 1.1, disposable
class
The Image control displays the image specified by the ImageUrl property. Because
different mobile devices support different image formats, you will almost always use
device-specific <Choice> elements to ensure that each type of device receives a different
ImageUrl (which will point to a different image format). For example, an image
formatted as a .gif file will be displayed on HTML-capable browsers, but will not be
displayed on WML-capable browsers. For WML-capable browsers, you need an image
formatted as a .wbmp file. The Image control itself does not provide any ability to
convert images from one format to another, or modify any image characteristics. (For
example, if a client supports only monochrome images, the Image control will not auto-
matically convert a color image to monochrome.)
In some cases, the ImageUrl will not contain the URL for an image, but a scheme that
indicates device-specific information. For example, WML 1.1 phones that support
glyphs recognize the symbol: scheme. On an i-more ...