setColorFilter not working
As much as I hate to answer my own questions I found the problem: I should’ve used: weatherImg.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP);
As much as I hate to answer my own questions I found the problem: I should’ve used: weatherImg.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP);
I did some research on this and put together a working(ish) example. Here’s what I found. It’s pretty easy to get the raw data coming off of the camera. It’s returned as a YUV byte array. You’d need to draw it manually onto a surface in order to be able to modify it. To do … Read more
Alright, I had a quick play with this and noticed your issue of the circles disappearing. Without you describing what exactly you tried, I assume you haven’t tried setting the color filter to the Drawable itself yet? (as opposed to the ImageView, which only seems to work with BitmapDrawables). The following statements work perfectly fine … Read more
This is what I use for my game. This is the compilation of various part found on various articles on websites. Credits goes to the original author from the @see links. Note that a lot more can be done with color matrices. Including inverting, etc… public class ColorFilterGenerator { /** * Creates a HUE ajustment … Read more