Back to Fresco

RoundingParams.RoundingMethod

docs/javadoc/reference/com/facebook/drawee/generic/RoundingParams.RoundingMethod.html

3.6.013.3 KB
Original Source

Fresco

|

|

Packages | Classes

Classes

Enums

Packages | Classes

Summary: Enums | Methods | Inherited Methods | [Expand All]

public static final enum

RoundingParams.RoundingMethod

extends Enum<E extends Enum<E>>

| java.lang.Object | | ↳ | java.lang.Enum<E extends java.lang.Enum<E>> | | | ↳ | com.facebook.drawee.generic.RoundingParams.RoundingMethod |

Summary

Enum Values
RoundingParams.RoundingMethod
RoundingParams.RoundingMethod
Public Methods
static RoundingParams.RoundingMethod
final static RoundingMethod[]

| [Expand] Inherited Methods | | --- | | From class java.lang.Enum

| final Object | clone() | | final int | compareTo(E arg0) | | int | compareTo(Object arg0) | | final boolean | equals(Object arg0) | | final void | finalize() | | final Class<E> | getDeclaringClass() | | final int | hashCode() | | final String | name() | | final int | ordinal() | | String | toString() | | static <T extends Enum<T>> T | valueOf(Class<T> arg0, String arg1) |

| | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface java.lang.Comparable

| abstract int | compareTo(T arg0) |

|

Enum Values

public static final RoundingParams.RoundingMethod BITMAP_ONLY

Uses BitmapShader to draw the bitmap with rounded corners. This is the default rounding method. It doesn't support animations, and it does not support any scale types other than CENTER_CROP, FOCUS_CROP and FIT_XY.

If you use this rounding method with other scale types, such as CENTER, you won't get an Exception but the image might look wrong (e.g. repeated edges), especially in cases the source image is smaller than the view.

public static final RoundingParams.RoundingMethod OVERLAY_COLOR

Draws rounded corners on top of the underlying drawable by overlaying a solid color which is specified by setOverlayColor. This option should only be used when the background beneath the underlying drawable is static and of the same solid color.

Adding borders with this method will cause image edges to be trimmed off. Not noticeable if the color is opaque, but very noticeable with low opacity.

Public Methods

public static RoundingParams.RoundingMethod valueOf(String name)

public static final RoundingMethod[] values()

+Generated by Doclava. +