Does anyone have a snippet of code to open a JPG, add some text with a transparent background to it and save it back? Seems simple enough but my attempts, thus far, have been far from achieving my objective. I suspect I'm getting confused between panels, canvases and whatnot...
There are several ways to do it.
The simplest way is:
- Load the image to an ImageView
- Initialize a Canvas object with the ImageView
- Draw the text with Canvas.DrawText
- Save the image (there are many examples of how to save a canvas image on the forum).