I have already done an application where the user can draw lines with a finger. For this I extend a View and call
Canvas.drawPath(path)
where path
is updated every time the user touches and moves the finger. However now I need to be able to save such drawing, but the output file should be larger in resolution than the drawing view. I think that this is more or less like the other image editing apps that show you a scaled-down version of a picture, but in the end you save your edits to the original size.
I guess that if I draw on the scaled-down view and then simply scale-up for saving, it will look bad (pixelated) because the output image will be like twice bigger than shown on the view.
So how do the image editors handle this? I have not been able to find (yet) the source code of such image editor.
Thanks in advance!