鸿蒙 Image 方法及应用

鸿蒙 Image 方法及应用

getClipAlignment() 获取图像剪裁对齐方式。
getClipDirection() 获取图像剪裁方向。
getClipGravity() 不推荐使用。请改用getClipAlignment()。
getCornerRadii() 获得四个角的半径。
getCornerRadius() 获得拐角半径。
getImageElement() 获取元素的值。
getPixelMap() 获取此图像上显示的PixelMap对象。
getPixelMapHolder() 获取此图像上显示的PixelMapHolder对象。
getScaleMode() 获取图像缩放模式。
setClipAlignment(int clipAlignment) 设置剪裁对齐方式。
setClipDirection(int clipDirection) 设置图像剪切方向。
setClipGravity(int clipGravity) 不推荐使用。请改用setClipAlignment(int)。
setCornerRadii(float []半径) 设置此图像每个圆角的半径。
setCornerRadius(浮动半径) 为该图像的四个圆角设置统一的半径。
setImageAndDecodeBounds(int resId) 设置要显示的图像的资源ID,并对图像进行解码。
setImageElement(元素元素) 设置要为此图像显示的元素。
setPixelMap(int resId) 设置要显示的图像的资源ID。
setPixelMap(PixelMap pixelMap) 设置要在组件上显示的图像。
setPixelMapHolder(PixelMapHolder pixelMapHolder) 设置要为此图像显示的PixelMapHolder对象。
setScaleMode(Image.ScaleMode scaleMode) 设置图像的缩放模式。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值