Code example for Point

0
        try { 
            file = new RandomAccessFile(imagePath, "r");
            BitmapFactory.decodeFileDescriptor(file.getFD(), null, options);
            return new Point(options.outWidth, options.outHeight);
        } catch (IOException e) {
            Ln.d(e, "Could not get size.");
            return null; 
        } finally { 
            if (file != null)
                try { 
                    file.close();
                } catch (IOException e) {
                    Ln.d(e, "Could not get size.");
                } 
        } 
    } 
 
    /** 
     * Get bitmap with maximum height or width 
     * 
     * @param imagePath