鸿蒙 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) 设置图像的缩放模式。