首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > ASP > 在GWT预加载图像的小程序

在GWT预加载图像的小程序

  • 资源大小:27.43 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 图像 程序 GWT 加载

资 源 简 介

This utility has two purposes To pre-load images with a single line of code, and reliably inform your code when loading is complete. To get the original dimensions of an image. This is particularly useful for resizing images while maintaining aspect ratio. In fact, this case is so common that the library also includes a subclass of Image that automatically resizes itself and preserves aspect ratio. Usage Preload an image. ImagePreloader.load(, null); Preload an image, and display the dimensions when it finishes loading. ImagePreloader.load(, new ImageLoadHander() { public void imageLoaded(ImageLoadEvent event) { if (event.isLoadFailed()) Window.alert("Image " + event.getImageUrl() + " failed to load."); else Window.alert("Image " + event.getImageUrl() + " loaded ("

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP