android 調色盤顏色選取

先來張效果圖 主要是繼承View的類,通過Paint的畫筆類,對小圓點即選擇的位置做區域限制,獲取到當前選擇區域的像素轉換成rgb。 核心類ColorPickerView public class ColorPickerView extends View { private Context mContext; private Paint mRightPaint;
相關文章
相關標籤/搜索