MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getImageData

Function getImageData

packages/core/image-source/index.ios.ts:495–497  ·  view source on GitHub ↗
(instance: UIImage, format: 'png' | 'jpeg' | 'jpg', quality = 0.9)

Source from the content-addressed store, hash-verified

493}
494
495function getImageData(instance: UIImage, format: 'png' | 'jpeg' | 'jpg', quality = 0.9): NSData {
496 return NativeScriptUtils.getImageDataFormatQuality(instance, format, quality);
497}
498
499export function fromAsset(asset: ImageAsset): Promise<ImageSource> {
500 console.log('fromAsset() is deprecated. Use ImageSource.fromAsset() instead.');

Callers 4

saveToFileMethod · 0.85
saveToFileAsyncMethod · 0.85
toBase64StringMethod · 0.85
toBase64StringAsyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected