Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02d9102b authored by Brad Fitzpatrick's avatar Brad Fitzpatrick
Browse files

Document Bitmap.createScaledBitmap

Change-Id: Ife6a42bc08d17c56274e78a1f5d2c100c2fe4dc8
parent 106950f2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -319,6 +319,15 @@ public final class Bitmap implements Parcelable {
        return b;
    }

    /**
     * Creates a new bitmap, scaled from an existing bitmap.
     *
     * @param src       The source bitmap.
     * @param dstWidth  The new bitmap's desired width.
     * @param dstHeight The new bitmap's desired height.
     * @param filter    true if the source should be filtered.
     * @return the new scaled bitmap.
     */
    public static Bitmap createScaledBitmap(Bitmap src, int dstWidth,
            int dstHeight, boolean filter) {
        Matrix m;