We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I changed the code of the CameraTest in this way:
export function onTakePictureTap(args: EventData) { let page = <Page>(<View>args.object).page; let saveToGallery = page.bindingContext.get("saveToGallery"); takePicture({width: 180, height: 180, keepAspectRatio: false, saveToGallery: saveToGallery}). then((imageAsset) => { let source = new ImageSource(); source.fromAsset(imageAsset).then(source => { console.log("Size: " + source.width + "x" + source.height); }); page.bindingContext.set("cameraImage", imageAsset); }, (err) => { console.log("Error -> " + err.message); }); }
which should produce an square image, but says: CONSOLE LOG file:///app/main-page.js:25:24: Size: 375x667
CONSOLE LOG file:///app/main-page.js:25:24: Size: 375x667
and here is how it looks:
The text was updated successfully, but these errors were encountered:
duplicated with #26
Sorry, something went wrong.
No branches or pull requests
I changed the code of the CameraTest in this way:
which should produce an square image, but says:
CONSOLE LOG file:///app/main-page.js:25:24: Size: 375x667
and here is how it looks:
The text was updated successfully, but these errors were encountered: