2013-09-02
展开全部
public int getPixel (int x, int y)Added in API level 1Returns the Color at the specified location. Throws an exception if x or y are out of bounds (negative or >= to the width or height respectively). The returned color is a non-premultiplied ARGB value.ParametersxThe x coordinate (0...width-1) of the pixel to returnyThe y coordinate (0...height-1) of the pixel to returnReturns[*]The argb Color at the specified coordinateThrowsIllegalArgumentExceptionif x, y exceed the bitmap's bounds
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-02
展开全部
public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub bitmap.getPixel(event.getX(), event.getY()); return false; }
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-09-02
展开全部
谢谢帮助!!!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询