-
public class ImageResizeModeConverts JS resize modes into Android-specific scale type.
-
-
Method Summary
Modifier and Type Method Description static ScalingUtils.ScaleTypetoScaleType(@Nullable() String resizeModeValue)Converts JS resize modes into {@code ScalingUtils.ScaleType}.static Shader.TileModetoTileMode(@Nullable() String resizeModeValue)Converts JS resize modes into {@code Shader.TileMode}.static ScalingUtils.ScaleTypedefaultValue()This is the default as per web and iOS. static Shader.TileModedefaultTileMode()-
-
Method Detail
-
toScaleType
static ScalingUtils.ScaleType toScaleType(@Nullable() String resizeModeValue)
Converts JS resize modes into
{@code ScalingUtils.ScaleType}. See{@code ImageResizeMode.js}.
-
toTileMode
static Shader.TileMode toTileMode(@Nullable() String resizeModeValue)
Converts JS resize modes into
{@code Shader.TileMode}. See{@code ImageResizeMode.js}.
-
defaultValue
static ScalingUtils.ScaleType defaultValue()
This is the default as per web and iOS. We want to be consistent across platforms.
-
defaultTileMode
static Shader.TileMode defaultTileMode()
-
-
-
-