Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
NeslynChellaiah committed Nov 27, 2024
1 parent 67b27c2 commit 8431d0a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lottie/src/main/java/com/airbnb/lottie/LottieImageAsset.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,6 @@ public void setBitmap(@Nullable Bitmap bitmap) {
this.bitmap = bitmap;
}

/**
* Returns a new {@link LottieImageAsset} with the same properties as this one but with the
* dimensions and bitmap scaled.
*/
public LottieImageAsset copyWithScale(float scale) {
LottieImageAsset newAsset = new LottieImageAsset((int) (width * scale), (int) (height * scale), id, fileName, dirName);
if (bitmap != null) {
Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmap, newAsset.width, newAsset.height, true);
newAsset.setBitmap(scaledBitmap);
}
return newAsset;
}

/**
* Returns whether this asset has an embedded Bitmap or whether the fileName is a base64 encoded bitmap.
*/
Expand Down

0 comments on commit 8431d0a

Please sign in to comment.