¡@

Home 

2014/10/16 ¤W¤È 08:17:50

android Programming Glossary: lefttop.y

Custom Android Image Crop

http://stackoverflow.com/questions/16182120/custom-android-image-crop

leftTop.equals 0 0 resetPoints canvas.drawRect leftTop.x leftTop.y rightBottom.x rightBottom.y paint @Override public boolean onTouchEvent.. initial_size 2 rightBottom.set leftTop.x initial_size leftTop.y initial_size private static boolean isActionInsideRectangle.. 10 return x leftTop.x buffer x rightBottom.x buffer y leftTop.y buffer y rightBottom.y buffer true false private boolean isInImageRange..

Custom Android Image Crop

http://stackoverflow.com/questions/16182120/custom-android-image-crop

protected void onDraw Canvas canvas super.onDraw canvas if leftTop.equals 0 0 resetPoints canvas.drawRect leftTop.x leftTop.y rightBottom.x rightBottom.y paint @Override public boolean onTouchEvent MotionEvent event int eventaction event.getAction.. 2 getHeight 2 leftTop.set getWidth initial_size 2 getHeight initial_size 2 rightBottom.set leftTop.x initial_size leftTop.y initial_size private static boolean isActionInsideRectangle float x float y int buffer 10 return x leftTop.x buffer x rightBottom.x.. boolean isActionInsideRectangle float x float y int buffer 10 return x leftTop.x buffer x rightBottom.x buffer y leftTop.y buffer y rightBottom.y buffer true false private boolean isInImageRange PointF point Get image matrix values and place them..