public class ImageUtil extends Object
Utility functions for dealing with images. Includes, among other things, useful functions for generating image masks (to add round corners to images).
Constructor and Description |
---|
ImageUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
createImageMask(RoundBorder border,
int size) |
static Object |
createImageMask(RoundRectBorder border,
int width,
int height) |
static Object |
createImageMask(String id,
Style style,
int width,
int height) |
static URLImage.ImageAdapter |
createMaskAdapter(RoundBorder border,
int size) |
static URLImage.ImageAdapter |
createMaskAdapter(RoundRectBorder border,
int width,
int height) |
static URLImage.ImageAdapter |
createMaskAdapter(String id,
Style style,
int width,
int height) |
static EncodedImage |
createPlaceholder(int width,
int height) |
static Object |
createRoundImageMask(int size) |
static URLImage.ImageAdapter |
createRoundMaskAdapter(int size) |
static Object |
createRoundRectImageMask(float cornerRadiusMM,
int width,
int height) |
static URLImage.ImageAdapter |
createRoundRectMaskAdapter(float cornerRadius,
int width,
int height) |
static Object |
createRoundSquareImageMask(float cornerRadiusMM,
int size) |
static URLImage.ImageAdapter |
createRoundSquareMaskAdapter(float cornerRadius,
int size) |
public static EncodedImage createPlaceholder(int width, int height)
public static Object createRoundSquareImageMask(float cornerRadiusMM, int size)
public static URLImage.ImageAdapter createRoundSquareMaskAdapter(float cornerRadius, int size)
public static Object createRoundRectImageMask(float cornerRadiusMM, int width, int height)
public static URLImage.ImageAdapter createRoundRectMaskAdapter(float cornerRadius, int width, int height)
public static Object createImageMask(RoundRectBorder border, int width, int height)
public static URLImage.ImageAdapter createMaskAdapter(RoundRectBorder border, int width, int height)
public static Object createRoundImageMask(int size)
public static URLImage.ImageAdapter createRoundMaskAdapter(int size)
public static Object createImageMask(RoundBorder border, int size)
public static URLImage.ImageAdapter createMaskAdapter(RoundBorder border, int size)
public static URLImage.ImageAdapter createMaskAdapter(String id, Style style, int width, int height)
Copyright © 2021. All Rights Reserved.