如何在畫布上繪製文字,如下圖中突出顯示的圖像Green rectangle
。在角度上在畫布上繪製文本
我做了下面的代碼....但是從這個代碼,我可以在straight
寫入文本。不能在angle
處寫文字。
Bitmap bmpLayered = Bitmap.createBitmap(bmpMain.getWidth(), bmpMain
.getHeight(), Bitmap.Config.ARGB_8888);
Canvas cv = new Canvas(bmpLayered);
Paint charPaint = new Paint();
charPaint.setAntiAlias(true);
charPaint.setStyle(Paint.Style.FILL);
charPaint.setTextSize(24);
charPaint.setColor(Color.BLACK);
charPaint.setStrokeWidth(3);
cv.drawText("None", 570, 222, charPaint);
請幫我解決這個問題。
謝謝。
由於它的工作.. – Nikhil