Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法通过旋转和文本自定义将文本添加到位图,然后他们将带有文本的位图保存到设备存储中。这也可以应用于向图像添加图像吗?
只需创建一个由位图支持的画布,new Canvas(myMutableBitmap)并在其中绘制文本。然后用 . 保存位图myMutableBitmap.compress()。
new Canvas(myMutableBitmap)
myMutableBitmap.compress()