viewToFileRect

public void viewToFileRect(Rect vRect, Rect fRect)

Converts a rectangle within the view to the corresponding rectangle from the source file, taking into account the current scale, translation, orientation and clipped region. This can be used to decode a bitmap from the source file.

This method will only work when the image has fully initialised, after isReady returns true. It is not guaranteed to work with preloaded bitmaps.

The result is written to the fRect argument. Re-use a single instance for efficiency.

Parameters

vRect

rectangle representing the view area to interpret.

fRect

rectangle instance to which the result will be written. Re-use for efficiency.