开发者

Copy contents of multiple bitmap to one without scaling

开发者 https://www.devze.com 2023-02-12 13:11 出处:网络
I have 2 bitmaps. I want to copy some content from bitmap 1 and some content of bitmap 开发者_JAVA技巧2 and copy to a bigger bitmap. When i try to do that the smaller bitmap1 gets stretched in the lar

I have 2 bitmaps. I want to copy some content from bitmap 1 and some content of bitmap 开发者_JAVA技巧2 and copy to a bigger bitmap. When i try to do that the smaller bitmap1 gets stretched in the larger bitmap. Is there a way to copy the contents using scaling?


Create your target bitmap, create a Canvas for it, then call Canvas.drawBitmap to copy the bitmaps onto your larger bitmap.

0

精彩评论

暂无评论...
验证码 换一张
取 消