import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.ColorMatrix; import android.graphics.ColorMatrixColorFilter; import android.graphics.LightingColorFilter; import android.graphics.Paint; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; import android.util.AttributeSet; import android.view.View; import com.netease.paint.colorfilter.R; public class ColorFilterView extends View { private Paint mPaint; private Bitmap mBitmap; private ColorMatrixColorFilter mColorMatrixColorFilter; public ColorFilterView(Context context) { super(context); mPaint = new Paint(); mBitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.girl); } public ColorFilterView(Context context, AttributeSet attrs) { super(context, attrs);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)