IOS,Android App 图像处理
1.嗨图(图片标注)
图片标注SDK,在图片上添加语音、文字、链接、地理位置等标签,同时还有多种滤镜、贴纸处理效果,帮助提升产品用户体验。
2.涂图(图片处理)
功能:图像编辑功能,拍照优化,专业图像编辑功能,图像处理套件。
3.图片倒影
1 /** 2 * 获得带倒影的图片方法 3 * 4 * @param bitmap 5 * @return 6 */ 7 public static Bitmap createReflectionImageWithOrigin(Bitmap bitmap) { 8 final int reflectionGap = 4; 9 int width = bitmap.getWidth(); 10 int height = bitmap.getHeight(); 11 12 Matrix matrix = new Matrix(); 13 matrix.preScale(1, -1); 14 15 Bitmap reflectionImage = Bitmap.createBitmap(bitmap, 0, height / 2, 16 width, height / 2, matrix, false); 17 18 Bitmap bitmapWithReflection = Bitmap.createBitmap(width, 19 (height + height / 2), Config.ARGB_8888); 20 21 Canvas canvas = new Canvas(bitmapWithReflection); 22 canvas.drawBitmap(bitmap, 0, 0, null); 23 Paint deafalutPaint = new Paint(); 24 canvas.drawRect(0, height, width, height + reflectionGap, deafalutPaint); 25 26 canvas.drawBitmap(reflectionImage, 0, height + reflectionGap, null); 27 28 Paint paint = new Paint(); 29 LinearGradient shader = new LinearGradient(0, bitmap.getHeight(), 0, 30 bitmapWithReflection.getHeight() + reflectionGap, 0x70ffffff, 31 0x00ffffff, TileMode.CLAMP); 32 paint.setShader(shader); 33 // Set the Transfer mode to be porter duff and destination in 34 paint.setXfermode(new PorterDuffXfermode(Mode.DST_IN)); 35 // Draw a rectangle using the paint with our linear gradient 36 canvas.drawRect(0, height, width, bitmapWithReflection.getHeight() 37 + reflectionGap, paint); 38 39 return bitmapWithReflection; 40 }

浙公网安备 33010602011771号