Can someone help me with having this sort of transparent background with color of foreground image. Should i use multiple filters of transparent images or how is this achieved i am able to get transparency with #AARRGGBB
values but not a texture like that shown in the below images.
I am using same foreground image and same background image now i want to introduce a filter between those two so that only color of image is visible not the image itself. I want to know what value(ARGB) of transparent filter should i use in between those two images to achieve this or is there any other approach.
3
Answers
Turns out that there are few easy options to achieve this on android using libraries like Blurry or Picasso transformations both by developer called wasabeef. I used picasso transformations as it seamlessly integrates with picasso image library if you are already using it in your project. All i did was mention the type of transformation i want in this case a blured tansformation and give optional radius and sampling rate.
Perhaps, you are looking for Palette.
Here, how you use it.
And to retrive the color,
However,
Pallete
returns only one Color, not a Gradient as you have shown in the question images. To me, it seems like they have blurred and added transparency to the foreground image and then posted it in the background.Here is one simple solution that may achieve what you are looking for just using CSS no plugins required