#我的鸿蒙开发手记#鸿蒙开发:ArkTs中图片与视频的使用
原创
在ArkTS中,图片和视频的使用主要通过组件和资源管理实现图片使用1.资源类型本地图片:存放在resources目录下的basemedia或rawfile文件夹。网络图片:直接使用图片URL。加载png、gif、svg和jpg等基本类型的图片。EntryComponentstructImageExample1{build(){Column(){Flex({direction:FlexDirection.Column,alignItems:ItemAlign.Start}){Row(){加载png格式图片Image($r('app.media.iccameramasteraileaf')).width(110).height(...