(maxSize: number, options?: any)
| 371 | } |
| 372 | |
| 373 | public resize(maxSize: number, options?: any): ImageSource { |
| 374 | const dim = getScaledDimensions(this.android.getWidth(), this.android.getHeight(), maxSize); |
| 375 | const bm: android.graphics.Bitmap = android.graphics.Bitmap.createScaledBitmap(this.android, dim.width, dim.height, options && options.filter); |
| 376 | |
| 377 | return new ImageSource(bm); |
| 378 | } |
| 379 | |
| 380 | public resizeAsync(maxSize: number, options?: any): Promise<ImageSource> { |
| 381 | return new Promise((resolve, reject) => { |
nothing calls this directly
no test coverage detected