• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. T

    Apps Check if colors are visually the same

    I've found this piece of code: public static boolean colorWillBeMasked(int color, Application app){ if(android.R.color.transparent == color) return true; int[] rgb = {Color.red(color), Color.green(color), Color.blue(color)}; int brightness = (int)Math.sqrt( rgb[0] * rgb[0] * .241 + rgb[1] *...
  2. T

    Apps Draw chunked bitmap on Canvas using Matrix

    Hi developers, Due to some unknown reason my previous attempt to post this question didn't succeed. When a bitmap is loaded that exceeds the max texture size, my piece of code chunks up the image. That is working great, but the drawing to the canvas isn't working that well. The position of the...