如何改变位图的颜色温度?
我尝试了我在网上找到的方法:
ColorMatrix colorMatrix = new ColorMatrix();
colorMatrix.set(new float[] {
temp/255.0f, 0, 0, 0, 0,
0, temp/255.0f, 0, 0, 0
0, 0, temp/255.0f, 0, 0,
0, 0, 0, 1, 0});
// temp is the float i change with seekbar's progress
//i replace 255.0f with values from below's link!color.html
发布于 2015-09-07 15:47:47
你确定你不是在说ColorFilter吗?
Drawable drawable = new BitmapDrawable(bmp);
drawable.setColorFilter(warmColor, PorterDuff.Mode.MULTIPLY);https://stackoverflow.com/questions/32441799
复制相似问题