----- Image -----


https://doc.qt.io/qt-6.9/zh/qml-qtquick-image.html

 属性 
import QtQuick
    
Image {
    source: url
        //相对或绝对地址,支持Qt 支持的任何图像格式
        //不指定宽高,则采用图片的宽高
    
    //对齐,默认居中
    horizontalAlignment: enumeration  //水平
        horizontalAlignment: Image.AlignLeft
        horizontalAlignment: Image.AlignRight
        horizontalAlignment: Image.AlignHCenter
    verticalAlignment: enumeration  //垂直
        verticalAlignment: Image.AlignTop
        verticalAlignment: Image.AlignBottom
        verticalAlignment: Image.AlignVCenter
    
    //填充模式
    fillMode: enumeration
        fillMode: Image.Stretch
            //拉伸 ,默认
        fillMode: Image.PreserveAspectFit
            //统一比例缩放以适应项目,不进行裁剪
        fillMode: Image.PreserveAspectCrop
            //均匀缩放,必要时进行裁剪
        fillMode: Image.Tile
            //水平和垂直复制图像,平铺
        fillMode: Image.TileVertically
            //水平拉伸,垂直平铺
        fillMode: Image.TileHorizontally
            //垂直拉伸,水平平铺
        fillMode: Image.Pad
            //图像不转换
    currentFrame: int
        //多帧图片时,相当于帧的索引,默认第一帧 0
    asynchronous: bool
        //本地图片在单独线程中异步加载,默认 false
        //在加载大量或大图像时应启用,避免界面卡顿
        //只对本地资源有效,网络资源始终异步加载
    autoTransform: bool
        //图像是否应自动应用图像转换元数据(如 EXIF 方向),默认 false
    cache: bool
        //缓存,默认 true
        //处理大型图片时,建议禁用
    mipmap: bool
        //缩放或变换时是否使用 mipmap 过滤,默认 false
        //类似 smooth,但效果由于 smooth
    mirror: bool
        //水平翻转
    mirrorVertically: bool
        //垂直翻转
    smooth: bool
        //缩放或变换图像时,该属性决定是否对图像进行平滑过滤,默认 true
    sourceClipRect: rect
        //若设置了该属性,则保留要加载的源图像的矩形区域
    sourceSize: size
        //全帧图像的宽度和高度缩放值
        //无论图像的宽高是多少,都能确保内存中的图像不大于 该参数值 像素
}


 只读属性 
import QtQuick
    
Image {
    paintedWidth(Height): real
        //实际绘制图像的大小
    frameCount: int
        //图像帧数
    progress: real
        //图像加载进度 0.0~1.0
    
    //图像状态
    status: enumeration
        status: Image.Null
            //未设置图像
        status: Image.Ready
            //已加载图像
        status: Image.Loading
            //正在加载图像
        status: Image.Error
            //加载图像时发生错误
}