如何在Android画布上使用发光和霓虹灯效果绘制文字?

时间:2017-01-02 11:58:14

标签: android android-canvas

如何实现这一目标?

这是我到目前为止所尝试的内容:

paint = new Paint();

path=new Path();
path.moveTo(50, 50);
paint.setColor(Color.argb(255, 25, 25, 255));
paint.setTextSize(70);
paint.setFakeBoldText(true);

paint.setMaskFilter(new BlurMaskFilter(10, BlurMaskFilter.Blur.SOLID));
Typeface typeface = Typeface.create(Typeface.SANS_SERIF,Typeface.BOLD);
paint.setTypeface(typeface);           

paint.setStyle(Style.FILL_AND_STROKE);
paint.setAntiAlias(true);
paint.setDither(true);
paint.setTextAlign(Align.CENTER);

0 个答案:

没有答案
相关问题