Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.Point; public class Main { public static boolean isSameByPosition(Bitmap bitmap, Bitmap other, Point[] points) { for (Point p : points) { if (bitmap.getPixel(p.x, p.y) != bitmap.getPixel(p.x, p.y)) return false; } return true; } }