WAP之家:为您提供最全最新的WAP技术,CP.SP.3G等行业资讯。 WAP之家交流论坛全新开放 点击进入>>
WAP资讯 | 3G动态 | SP动态 | 运营商动态 | 内容商动态 | 制造商动态 | 论坛讨论>> 每次自动访问
WAP技术 | WAP源码 | 手机编程 | 手机源码 | 无线技术 | J2ME技术 | 手机软件 添加到收藏夹
IVR技术 | SP资料 | SMS MMS技术 | 商业方案 | IVR下载 | 书籍教程 | 工具软件 语言:繁體中文

WAP之家技术文章WAP教程网站教程.NET Mobile图象

.NET Mobile图象
作者:佚名  来源:本站整理  发布时间:2008-3-14 20:37:14

.NET Mobile displays different types of images for different types of devices.
.NET Mobile用于在不同类型的装置中显示不同类型的图象。


The Image Control
图像控件

Different mobile devices have different display capabilities.
不同的Mobile装置有不同的显示特性。

The Image Control allows the developer to specify different types of images for different types of devices.
Image(图像)控件允许开发者对不同类型装置制定不同类型的图象


Image Types
图象类型

Some mobile devices will display GIF images. Other mobile devices will display BMP images or WBMP images. The Image Control allows you to specify different images for each preferred image type.
一些Mobile装置会显示GIF格式图形。别的Mobile装置会显示BMP 或WBMP 格式的图像

This mobile page displays an image:
这页Mobile页面显示了一个图像:

<%@ Page
Inherits=
"System.Web.UI.MobileControls.MobilePage"%>
<%@ Register
TagPrefix="Mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<Mobile:Form runat="server">

<Mobile:Image runat="server">
  <DeviceSpecific>
    <Choice ImageURL="image.gif" />
    <Choice ImageURL="image.bmp" />

    <Choice ImageURL="image.wbmp" />
  </DeviceSpecific>
</Mobile:Image>
</Mobile:Form>

When this page is displayed on pocket PC, a GIF image will be displayed. On a cell phone a WBMP image or a BMP image will be displayed, according to the characteristics of the cell phone.
当这页在pocket PC显示时,会显示一幅GIF格式图像。在手机上会显示一幅WBMP 或BMP 格式的图像,这就要根据手机的特性而定了。

[] [返回上一页] [打 印]
文章评论

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码