nativescript-imagecropper
nativescript-imagecropper copied to clipboard
Cropped Image passing to other API - issues
I need to use the cropped image for another functionality like- need to pass to Google API for OCR purpose and I am using this code -
this.croppedImage = frameModule.topmost().getViewById("croppedImage"); this.croppedImage.imageSourceModule = args.image;
And I pass this.croppedImage.imageSourceModule to Google API.
and use this.croppedImage for the further purpose but I always see this.croppedImage as undefined. I have the id in HTML too like the below -
<Image *ngIf="myImage" horizontalAlignment="center" src="{{croppedImage}}" width="700" height="600" id="croppedImage"></Image>
Please let me know what wrong I am doing?