Added convenience method to create rounding options based on all 8 radii passed as an array
Summary: This makes it easier to for example convert from Drawee's RoundingParams to RoundingOptions.
@@ -45,6 +45,10 @@ public class RoundingOptions {
return new RoundingOptions(false, CORNER_RADIUS_UNSET, radii, false);
}
+ public static RoundingOptions forCornerRadii(float[] cornerRadii, boolean antiAliasing) {
+ return new RoundingOptions(false, CORNER_RADIUS_UNSET, cornerRadii, antiAliasing);
+ }
+
private final boolean mIsCircular;
private final float mCornerRadius;
private final @Nullable float[] mCornerRadii;
