Is there any way to synthesis image in Android native API or using HTML5

I want to build a mobile app with the following function:

Let user choose an image, then we generate a picture base on that picture.

  • The generated picture has some specified text with specified font.
  • There is another picture, which may be a PNG file, used as foreground.
  • Output that generated picture to user's device.

Is there any way to synthesis image in Android API or using HTML5?


I prefered use some Javascript way to do this, so I can easily build the app cross platform, but I don't know whether JS can do that.

Answers


For this purpose you can use HTML5 canvas https://developer.mozilla.org/en/Drawing_Graphics_with_Canvas

If you want to code this using Android API you can use Canvas: http://developer.android.com/reference/android/graphics/Canvas.html

By the way there is a good guide "Displaying Bitmaps Efficiently" http://developer.android.com/training/displaying-bitmaps/index.html


Need Your Help

Evaluating Latex Math in Javascript

javascript latex interpreter renderer

I am working on a html-based calculator, and I want to render an expression, then evaluate it, and all of this must be done in Javascript. I would prefer for the expression to be written in LaTeX, ...

How would you list your products on an e-commerce site?

mysql database web e-commerce

A family member of mine is selling homemade soap, candles and reed diffusers.