Code example for RectF

Methods: sort

        // In some cases, the bitmap may be missing... 
        Bitmap bm = image.asBitmap();
        if (bm != null)
            RectF sortedBounds = new RectF(getBounds());
            // If the coordinate system is flipped in either direction, we need 
            // to do another temporary flip to ensure that the images are drawn 
            // in their native orientation. 
            CoordinateSystem cs = getParentView().getCoordinateSystem();
            boolean flipX = cs.isFlippedX();
            boolean flipY = cs.isFlippedY();
            if (flipX || flipY)
                Matrix matrix = new Matrix();