Code example for RectF

Methods: sort

0
            int oldAlpha = paint.getAlpha();
            paint.setAlpha(alpha);
 
            Canvas canvas = drawing.getCanvas();
 
            RectF sortedBounds = new RectF(bounds);
            sortedBounds.sort();
 
            // 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 = drawing.getCoordinateSystem();
            boolean flipX = cs.isFlippedX();
            boolean flipY = cs.isFlippedY();
 
            if (flipX || flipY)
            { 
                canvas.save();
 
                Matrix matrix = new Matrix();