我試圖獲取像素的顏色。我在我的OnCreate如下: bitmap = img.getDrawingCache();
int pixel = bitmap.getPixel(5,5);
int r = Color.red(pixel);
int g = Color.green(pixel);
int b = Color.blue(pixel);
Toast.makeText(getA
我有這個功能,從一個位圖創建一個區域: Public Shared Function GetRegion(ByVal sender As Bitmap, ByVal transperancyKey As Color, ByVal tolerance As Integer) As Region
' Stores all the rectangles for the region.