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 a new {@link LottieImageAsset} with the same properties as this one but with the
dimensions and bitmap scaled.
lottie/src/main/java/com/airbnb/lottie/LottieImageAsset.java