combining two png files in android

后端 未结 6 1643
星月不相逢
星月不相逢 2020-11-30 23:32

I have two png image files that I would like my android app to combine programmatically into one png image file and am wondering if it is possible to do so? if so, what I w

6条回答
  •  旧巷少年郎
    2020-12-01 00:01

    If they have transparent sections, then if you draw one on top of the other, only the non-transparent portions will overlap. It will be up to you to arrange the bitmaps however you like.

    For the separate issue of re-saving your image to a png, use bitmap.compress().

提交回复
热议问题