-
canvas.drawBitmap(bm,0,0,paint); note: bm不要写错查看全部
-
放假在家里学起来查看全部
-
矩阵变换查看全部
-
ColorMatrix setRotate() setSaturation() setScale() postConcat()查看全部
-
图像处理工具类实现步骤查看全部
-
RGBA模型查看全部
-
测量控件的大小通过post方法,可以在控件绘制完成后再获取控件大小
查看全部 -
onCreate中不能直接得到控件的宽高,因为方法执行时控件还未绘制完成,可以调用控件的post(Runnable)方法,在run方法中获取绘制后的值。查看全部
-
融合颜色、饱和度、亮度的处理。查看全部
-
色彩模型: HSL即色相、饱和度、亮度(英语:Hue, Saturation, Lightness),又称HSL。 HSV即色相、饱和度、明度(英语:Hue, Saturation, Value),又称HSB,其中B即英语:Brightness。 色相(H)是色彩的基本属性,就是平常所说的颜色名称,如红色、黄色等。 饱和度(S)是指色彩的纯度,越高色彩越纯,低则逐渐变灰,取0-100%的数值。 明度(V),亮度(L),取0-100%。 ColorMatrix hueMatrix = new ColorMatrix(); hueMatrix.setRotate(0,hue); 0-代表R hueMatrix.setRotate(1,hue); 1-代表G hueMatrix.setRotate(2,hue); 2-代表B查看全部
-
饱和度就是颜色的纯度,如果是0就是黑白没有颜色了,但是100%就是颜色最鲜艳了达到最好的了查看全部
-
美术课: 色调/色相,物体传递的颜色常见的红绿蓝查看全部
-
所谓的像素点分析处理图片就是设置好argb用矩阵进行包装,再进行一系列的Color的操作查看全部
-
色调 饱和度 亮度调节均使用ColorMatrix查看全部
-
ImageHelper 设置亮度、灰度、饱和度,都是靠颜色矩阵 Bitmap bmp = BitmapFactory(getResource(), ) Canvas canvas = new Canvas(bmp); Paint paint = new Paint(Paint.ANTI_ALIAS_FALG); ColorMatrix hueMatrix = new ColorMatrix(); hueMatrix.setRotate(0, hue); hueMatrix.setRotate(1,hue); hueMatrix.setRotate(2,hue); ColorMatrix saturationMatrix = new ColorMatrix(); lumMatrix.setScale(lum,lum,lum,1); //颜色数组,白色 ColorMatrix imageMatrix = new ColorMatrix(); imageMatrix.postConcat(hueMatrix); imageMatrix.postConcat(saturationMatrix); imageMatrix.postConcat(lumMatrix); paint.setColorFilter(new ColorMatrixColorFilter(imageMatrix)); canvas.drawBitmap(bm,0,0,paint);查看全部
举报
0/150
提交
取消