清泛IT社区App Inventor 2 中文社区

搜索

扫码访问移动社区 移动社区,您的掌上技术专家

关注我,精彩不错过! 关注我,精彩不错过!

扫码安装最新版AI伴侣 最新版AI伴侣v2.75

Aia Store .aia 源码一站式解决方案 发布日志AI2连接测试ai2Starter模拟器

App Inventor 2 离线版AI2 拓展接入DeepSeek VIP会员 享专有教程,免费赠送基础版*技术支持服务! AI2入门必读中文文档中文教程IoT专题

查看: 20|回复: 0
打印 上一主题 下一主题

[经验分享] Async Image Loader Extension:异步图像加载器扩展

  • TA的每日心情
    开心
    6 小时前
  • 签到天数: 526 天

    [LV.9]以坛为家II

    814

    主题

    1382

    帖子

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    37171

    AI2中文网VIP弹球达人接水果达人撸猫达人

    跳转到指定楼层
    楼主
    发表于 昨天 09:56 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

    [size=15.008px][color=var(--tertiary)][color=var(--secondary)][color=var(--secondary-high)]512×512 8.95 KB


    AsyncImage
    An extension for MIT App Inventor 2.

    Simple asynchronous image loader extension to load image asynchronously in an image or arrangement component with circular image. This is a simple, light weight and fast async image loader since it does not uses any external library to load images.
    Specifications
    [size=15.008px] Size: 9.36 KB
    Version: 5.0
    Minimum API Level: 7
    Updated On:  February 18, 2025 (Calcutta)
    Built & documented using: [color=var(--tertiary)]FAST-CLI 12
    Event:
    [size=15.008px]AsyncImage has total 1 event.
    OnError
    [size=15.008px]
    [size=15.008px]Event raised when an error occurs while loading an image.
    [size=15.008px]
    Parameter
    Type

    errorMessagetext

    Methods:
    [size=15.008px]AsyncImage has total 2 methods.
    LoadImageAsync
    [size=15.008px]
    [size=15.008px]Load image asynchronously from the given path in the specified component.
    [size=15.008px]
    Parameter
    Type

    imagePathtext
    componentcomponent

    ClearCache
    [size=15.008px]
    [size=15.008px]Clears the image cache memory.
    Designer:
    [size=15.008px]AsyncImage has total 5 designer properties.
    PlaceholderImage
    • Input type: asset
    ErrorImage
    • Input type: asset
    CircularImage
    • Input type: boolean
    • Default value: false
    BorderWidth
    • Input type: integer
    • Default value: 0
    BorderColor
    • Input type: color
    • Default value: &HFF000000
    Setters:
    [size=15.008px]AsyncImage has total 5 setter properties.
    PlaceholderImage
    [size=15.008px]
    [size=15.008px]Sets the placeholder image to be shown while the image is loading.
    • Input type: text
    ErrorImage
    [size=15.008px]
    [size=15.008px]Sets the error image to be shown if loading the image fails.
    • Input type: text
    CircularImage
    [size=15.008px]
    [size=15.008px]Set to true to make the loaded image circular.
    • Input type: boolean
    BorderWidth
    [size=15.008px]
    [size=15.008px]Specifies the width of the border around the loaded image.
    • Input type: number
    BorderColor
    [size=15.008px]
    [size=15.008px]Specifies the color of the border around the loaded image.
    • Input type: number
    Sample Blocks:

    [color=var(--tertiary)][color=var(--secondary)]image[color=var(--secondary-high)]1816×1000 103 KB



    [color=var(--tertiary)][color=var(--secondary)]image[color=var(--secondary-high)]1988×1016 196 KB



    [color=var(--tertiary)][color=var(--secondary)]image[color=var(--secondary-high)]1108×320 33 KB



    [color=var(--tertiary)][color=var(--secondary)]IMG_20240505_161351[color=var(--secondary-high)]760×760 90.2 KB


    [color=var(--tertiary)][color=var(--secondary)]IMG_20240505_161331[color=var(--secondary-high)]679×679 103 KB




    https://community.appinventor.mi ... rcular-image/113566

    https://aix.colintree.cn/zh/extensions/AsyncImageLoader.html

    com.thekstudio.asynczoomage.aix

    21.05 KB, 阅读权限: 90, 下载次数: 0, 下载积分: 经验 1

    com.thekstudio.asyncimage.aix

    9.36 KB, 阅读权限: 90, 下载次数: 0, 下载积分: 经验 1

    App Inventor 2 中文网 - MIT同步更新的中文本土化平台!v2.75 支持Android 14 更新日志
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    © 2025 tsingfun.com, Inc.  沪ICP备2020034476号-1  沪公网安备31011702000040号

    GMT+8, 2025-07-27 13:28 , Processed in 0.027455 second(s), 43 queries .