Когда я рисую текст на холсте, используя
//mTextPaint initialized while initialize the view.
mTextPaint = new TextPaint();
mTextPaint.setAntiAlias(true);
mTextPaint.setColor(color);
//iPath move/line to some point on onTouchEvent()
canvas.drawTextOnPath(text, iPath, 0, 0, mTextPaint);
![enter image description here](https://i.stack.imgur.com/wwVlW.png)
Когда я сохраняю этот вид в формате JPEG,
try {
fos = new FileOutputStream(fname);
v.getDrawingCache().compress(Bitmap.CompressFormat.JPEG, 100, fos);
} catch (Exception ex) {
Toast.makeText(this, "Error Saving Image",
Toast.LENGTH_LONG).show();
}
Примечание: setDrawingCacheEnabled(true);
добавлено при инициализации представления.
![enter image description here](https://i.stack.imgur.com/y4Lvm.png)
Любая идея о том, почему это происходит и как преодолеть эту проблему.