0

I have an android app which can send screen shots to share on Facebook. What I want is adding some stuffs like my app logo/icon on image and save that as a single image and share that on Facebook. (something like what heel climb racing does).

How can I combine Images? A sample code or tutorial would be grateful.

Alireza Farahani
  • 2,238
  • 3
  • 30
  • 54

1 Answers1

2

You can use the Canvas class to work with images.

Check this SO question for more details: combining two png files in android

Community
  • 1
  • 1
sdabet
  • 18,360
  • 11
  • 89
  • 158
  • Thank you. I have two little questions; 1- in draw bitmap, what are `float top` and `float left`? 2- How can I set text over an image and save as a single image? – Alireza Farahani Aug 01 '13 at 09:51
  • 1. I guess that `top` and `left` represent the position where you want the bitmap to be drawn (relative to the canvas) – sdabet Aug 01 '13 at 10:00
  • 2. There is a Canvas#drawText method: http://developer.android.com/reference/android/graphics/Canvas.html#drawText(java.lang.String, float, float, android.graphics.Paint) – sdabet Aug 01 '13 at 10:01