Back to project page TheFirstMyth02.
The source code is released under:
MIT License
If you think the Android project TheFirstMyth02 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.game.commen; // w ww . java 2 s . com import com.game.base.PubSet; import android.graphics.Paint; import android.graphics.Typeface; public class Paintforziti { /** *setAlpha(int a); * ???????????? * * setColor(int color); * ??????????????????????????????RGB??? * * setAntiAlias(boolean aa); * ??????????????????????????????????? * * setDither(boolean dither); * ?????????????????????????????????????????????? * * setFilterBitmap(boolean filter); * ???????true???????????????Bitmap?????????????? * ???????????dither?xfermode??? * * setMaskFilter(MaskFilter maskfilter); * ??MaskFilter????????????MaskFilter??????????????? * * setColorFilter(ColorFilter colorfilter); * ?????????????????????????????????? * * setPathEffect(PathEffect effect); * ??????????????? * * setShader(Shader shader); * ??????????Shader??????????????????? * * setShadowLayer(float radius ,float dx,float dy,int color); * ????????????????????radius???????dx?dy????x??y???????color?????? * * setStyle(Paint.Style style); * ??????????FILL?FILL_OR_STROKE??STROKE * * setStrokeCap(Paint.Cap cap); * ???????STROKE?FILL_OR_STROKE??????????????????? * Cap.ROUND,??????Cap.SQUARE * * setSrokeJoin(Paint.Join join); * ????????????????????????? * * setStrokeWidth(float width); * ???????STROKE?FILL_OR_STROKE?????????? * * setXfermode(Xfermode xfermode); * ?????????????????????????????????????????????????? * * 2.???? * setFakeBoldText(boolean fakeBoldText); * ????????????????????????? * * setSubpixelText(boolean subpixelText); * ?????true????????LCD????????? * * setTextAlign(Paint.Align align); * ?????????????? * * setTextScaleX(float scaleX); * ??????x????????????????????? * * setTextSize(float textSize); * ?????????????? * * setTextSkewX(float skewX); * ???????skewX????? * * setTypeface(Typeface typeface); * ??Typeface????????????????????????????????? * * setUnderlineText(boolean underlineText); * ???????????? * * setStrikeThruText(boolean strikeThruText); * ?????????? */ public Paintforziti(Paint paint) { // TODO Auto-generated constructor stub //???????? } public static Paint SetPaint(int textsize,int testcolor,int backcolr) { Paint paint = new Paint(); paint.setTextSize(textsize); paint.setColor(testcolor); paint.setTypeface(Typeface.SERIF); paint.setAntiAlias(true); paint.setDither(true); paint.setShadowLayer(2,2,2,backcolr); return paint; } }