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

Commit 9167126a authored by Nader Jawad's avatar Nader Jawad
Browse files

Added additional documentation to Bitmap#getScaledWidth,

Bitmap#getScaledHeight

Added additional comments describing the logic behind bitmap
dimension conversion between source and target densities

Change-Id: I7a8f9fddadad337430319a826458d1811809cef6
Fixes: 115292074
Test: N/A
parent aa602f16
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1514,6 +1514,9 @@ public final class Bitmap implements Parcelable {
     * Convenience method that returns the width of this bitmap divided
     * by the density scale factor.
     *
     * Returns the bitmap's width multiplied by the ratio of the target density to the bitmap's
     * source density
     *
     * @param targetDensity The density of the target canvas of the bitmap.
     * @return The scaled width of this bitmap, according to the density scale factor.
     */
@@ -1525,6 +1528,9 @@ public final class Bitmap implements Parcelable {
     * Convenience method that returns the height of this bitmap divided
     * by the density scale factor.
     *
     * Returns the bitmap's height multiplied by the ratio of the target density to the bitmap's
     * source density
     *
     * @param targetDensity The density of the target canvas of the bitmap.
     * @return The scaled height of this bitmap, according to the density scale factor.
     */