Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to apply different image effects (filters) on bitmap like sepia, black and white, blur, etc.? [closed]

I am not having any idea of how to apply different effect on Image,

I have seen the EffectFactory class and Effect class in effect class there is one method apply but I am not sure what to pass in inputTexId and optputTexId, and from where I get the new updated image, how to store the updated image in imageView,

Please help me with how to approach this problem. Is there any opensource library available for providing effects on Image.

Thanks,

like image 347
Nixit Patel Avatar asked Apr 30 '13 04:04

Nixit Patel


People also ask

What are filters and effects?

A filter will alter the underlying structure of the path it is applied to. An effect only changes the appearance of the path.

What is the use of Bitmap in Android?

Android provides Bitmap class to handle images.


1 Answers

You can also try this project it handle a number of Bitmap Processing

Filters :-

  • Boost-Up Colors
  • Brightness
  • Color Depth
  • Color Filter
  • Contrast
  • Emboss
  • Flip and Rotation
  • Gamma
  • Gaussian Blur
  • Grayscale
  • Hue
  • Invert
  • Noise
  • Saturation
  • Sepia
  • Sharpen
  • Sketch
  • Tint
  • Vignette

Since it is in Java and does pixel label processing, it is not as fast as most C++ based library out there but it work great if bitmap size is not very big eg thumbnails.

like image 80
Hitesh Sahu Avatar answered Oct 04 '22 12:10

Hitesh Sahu