public static Bitmap FriskyContrast(Bitmap bitmap,int Value)
{
ColorMatrix colorMatrix = new ColorMatrix();
colorMatrix.set(new float[] {
Value, 0, 0, 0, 1,
0, Value, 0, 0, 1,
0, 0, Value, 0, 1,
0, 0, 0, Value, 0 });
Bitmap BrightedImage = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), bitmap
.getConfig());
Canvas canvas = new Canvas(BrightedImage);
Paint paint = new Paint();
paint.setColorFilter(new ColorMatrixColorFilter(colorMatrix));
canvas.drawBitmap(bitmap, 0, 0, paint);
return BrightedImage;
}
FriskyImageProperty.java 文件源码
java
阅读 44
收藏 0
点赞 0
评论 0
项目:FriskyImage
作者:
评论列表
文章目录