Code example for RectF

Methods: mapRect

0
	} 
 
	// position of the left side of the horizontal scrollbar 
	@Override 
	public int computeHorizontalScrollOffset() { 
		RectF rect = new RectF(0, 0, image.getWidth(), image.getHeight());
		getImageMatrix().mapRect(rect);
		// Log.d("compute", "rect "+rect.toString()); 
		// Log.d("compute", "horizontal scroll offset "+rect.left); 
		return (int) -rect.left;
	} 
 
	@Override 
	public int computeVerticalScrollOffset() { 
		RectF rect = new RectF(0, 0, image.getWidth(), image.getHeight());
		getImageMatrix().mapRect(rect);
		// Log.d("compute", "vertical scroll offset "+rect.top); 
		return (int) -rect.top;
	} 
 
	private int overScrollTop() {