I am developing an app which allows users to color the images. I have the color matrix of the color I want to apply but the problem is instead of changing color of xy coordinates whole image gets colored. I don't know how to apply the colormatix to specified coordinates of the image.
I am using
matrix =
new float[] { 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, };
imageview.setColorFilter(new ColorMatrixColorFilter(matrix));
I am looking for something like imageview.SetPixelColorMatrix(x,y,matrix)
Can anyone help me?
使用createBitmap(位图源,整数x,整数y,整数宽度,整数高度,矩阵m,布尔值过滤器)在这里,您可以指定源的坐标。有关更多详细信息,请参见this 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.