Files
NativeScript/tns-core-modules/image-asset/image-asset.d.ts
Hristo Deshev 629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00

17 lines
513 B
TypeScript

import { Observable } from "../data/observable";
export class ImageAsset extends Observable {
constructor(asset: any);
getImageAsync(callback: (image: any, error: any) => void); //UIImage for iOS and android.graphics.Bitmap for Android
ios: any; //PHAsset
nativeImage: any; //UIImage for iOS and android.graphics.Bitmap for Android
android: any;
options: ImageAssetOptions;
}
export interface ImageAssetOptions {
width?: number;
height?: number;
keepAspectRatio?: boolean;
}