import { IView, View } from "../ui/view";
import { Color } from "../util/color";
export declare enum ScaleType {
ScaleToFill = 0,
ScaleAspectFit = 1,
ScaleAspectFill = 2
}
export interface IImage extends IView {
imageUrl?: string;
imageBase64?: string;
scaleType?: ScaleType;
isBlur?: boolean;
placeHolderImage?: string;
placeHolderColor?: Color;
errorImage?: string;
errorColor?: Color;
loadCallback?: (image: {
width: number;
height: number;
} | undefined) => void;
export declare class Image extends View implements IImage {
/**
* Display while image is loading
* Local file name
*/
* Color
* This priority is lower than placeHolderImage
* Display while image is failed to load
* It can be file name in local path
* This priority is lower than errorImage
export declare function image(config: IImage): Image;