如何将一张图片转化为PixelMapElement
Android实现:
Drawable mCompleteIcon = ContextCompat.getDrawable(getContext(), R.drawable.complted);
mCompleteIcon.setBounds(rect);
mCompleteIcon.draw(canvas);
说明:R.drawable.complted为一张图片资源
请问鸿蒙如何实现该功能
可绘制图片资源
赞
收藏 0
回答 1
待解决
相关问题
如何将一张彩色的图片渲染成黑白图片?
192浏览 • 1回复 待解决
如何将一张图片通过clip裁剪成一个圆形?
230浏览 • 2回复 待解决
如何将一张474*316的图片解码为40*40的图片?
193浏览 • 1回复 待解决
指定页面区域转化为图片
1767浏览 • 1回复 待解决
HarmonyOS将两张图片合成一张的解决方案
323浏览 • 1回复 待解决
如何吸取一张图片的色值?
216浏览 • 1回复 待解决
HarmonyOS【相机服务】连续拍照场景如何将多张照片合成一张?
294浏览 • 1回复 待解决
解决同界面中一张图片的放大会影响另一张图片位置
595浏览 • 1回复 待解决
从相册获取一张图片 或者自己拍一张图片 如何获取这张图片的路径 用来识别这个图片模型
1390浏览 • 1回复 待解决
#鸿蒙学习大百科#如何将文件描述符转化为File?
43浏览 • 1回复 待解决
如何保存一张PNG图片到相册中
1631浏览 • 1回复 待解决
HarmonyOS 如何使一张图片拉伸但不变形
339浏览 • 1回复 待解决
如何给一张图片加上一个灰色圆形的遮罩?
224浏览 • 1回复 待解决
如何展示一张图片沿着一个边在z方向进行旋转?
90浏览 • 1回复 待解决
一张图片如何压缩长宽和大小到指定值
224浏览 • 1回复 待解决
相册选择一张图片后,如何进入系统自带的图片编辑页
199浏览 • 1回复 待解决
HarmonyOS 如何快速获取一张本地图片的分辨率?
145浏览 • 1回复 待解决
需要调起系统相册,选择一张图片,并能获取到选择到的图片,应该如何实现
1594浏览 • 1回复 待解决
如何将相册返回的file://xxx/xxx/xx.jpg转化为ImageSource
1638浏览 • 1回复 待解决
HarmonyOS从相册中选取一张图片,如何查看尺寸和大小信息
463浏览 • 1回复 待解决
HarmonyOS resource下的文件Image展示,同一张图片如何设置不同的展示大小?
123浏览 • 1回复 待解决
跪求各位大神,鸿蒙JAVA开发,如何实现在一张图片上动态绘制文字??
2856浏览 • 1回复 待解决
ets中如何将图片转为byte[]?
3021浏览 • 1回复 待解决
鸿蒙自定义组件,如何在Ondraw()方法中使用canvas绘制一张资源图片?
5621浏览 • 1回复 待解决
如何实现将JSON字符串转化为特定对象?
606浏览 • 1回复 待解决
使用鸿蒙获取并设置网络图片