UNPKG

tav-media

Version:

Cross platform media editing framework

22 lines (21 loc) 651 B
import { tav } from '../tav'; import { Asset } from './tav-asset'; /** * ImageAsset is an asset that can be used to display image file. * @hideconstructor * @category Assets */ export declare class ImageAsset extends Asset { /** * Creates a new ImageAsset from the specified file path. Returns null if the file does not * exist or it's not a valid image file. */ static MakeFromPath(path: string): Promise<ImageAsset>; /** * Returns `'ImageAsset'` */ readonly type: string; private localPath; protected doPrepare(): Promise<any>; protected createAsset(): Promise<tav.ImageAsset> | undefined; }