How to recognise different shapes and fill color in them in android?
问题 I want to build an app for coloring images in native android, which has images and I want to know how to detect the image borders, and how to detect different shapes and fill color in them? example app link : https://play.google.com/store/apps/details?id=kidgames.coloring.pages&hl=en 回答1: You can use Flood Fill Algorithm. see link: Flood Fill Algorithm private void FloodFill(Bitmap bmp, Point pt, int targetColor, int replacementColor){ Queue<Point> q = new LinkedList<Point>(); q.add(pt);