前者比后者简单些,判断颜色更难!
rVal = null;
gVal = null;
bVal = null;
new Color(rVal,gVal,bVal)
图形拉伸其实就是原点的移动
判断鼠标在你的图里的坐标好象容易些