筛选条件:-
- 增强色彩
- 亮度
- 颜色深度
- 彩色滤光片
- 对比
- 浮雕
- 翻转和旋转
- 伽玛
- 高斯模糊
- 灰阶
- 色调
- 倒置
- 噪声
- 饱和
- 棕褐色
- 锐化
- 草图
- 着色
- 小插图
由于它使用Java并进行像素标签处理,因此它的速度不如大多数基于C ++的库快,但是如果位图的大小不是很大,例如缩略图,它的效果很好。
0
0
我已经实现了Jerry的Java图像处理库 。对我来说很好。
下载AndroidJars 。
编辑
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);
//Find the bitmap's width height
int width = AndroidUtils.getBitmapOfWidth(getResources(), R.drawable.ic_launcher);
int height = AndroidUtils.getBitmapOfHeight(getResources(), R.drawable.ic_launcher);
//Create a filter object.
GaussianFilter filter = new GaussianFilter();
//set???? function to specify the various settings.
filter.setRadius(8.5f);
//Change int Array into a bitmap
int[] src = AndroidUtils.bitmapToIntArray(bitmap);
//Applies a filter.
filter.filter(src, width, height);
//Change the Bitmap int Array (Supports only ARGB_8888)
Bitmap dstBitmap = Bitmap.createBitmap(src, width, height, Config.ARGB_8888);
在Android-jhlabs上找到更多详细信息
0
您可以使用Catalano Framework:
http://code.google.com/p/catalano-framework/
FastBitmap image = new FastBitmap(bitmap);
image.toRGB();
//Sepia
Sepia sepia = new Sepia();
sepia.applyInPlace(image);
//Blur
Blur blur = new Blur();
blur.applyInPlace(image);
//Emboss
Emboss emboss = new Emboss();
emboss.applyInPlace(image);
//Retrieve bitmap
bitmap = fb.toBitmap();
0
我不知道如何对图片应用不同的效果,
我已经看过效果类中的EffectFactory类和Effect类,有一种方法适用,但是我不确定在inputTexId和optputTexId中传递什么,以及从哪里获取新的更新图像,如何在imageView中存储更新的图像,
请帮助我解决该问题。是否有任何开源库可用于对Image提供效果。
谢谢,