Hi,

I would like to capture a 80x80 image from the Camera:

Qt Code:
  1. import QtQuick 2.0
  2. import QtQuick.Controls 1.4
  3. import QtMultimedia 5.5
  4.  
  5. Item {
  6. Column {
  7. VideoOutput {
  8. x: 0
  9. y: 0
  10. width: 80
  11. height: 80
  12. source: camera
  13. fillMode: VideoOutput.PreserveAspectCrop
  14. Camera {
  15. id: camera
  16. position: Camera.FrontFace
  17.  
  18. imageProcessing.whiteBalanceMode: CameraImageProcessing.WhiteBalanceFlash
  19.  
  20. exposure {
  21. exposureCompensation: -1.0
  22. exposureMode: Camera.ExposurePortrait
  23. }
  24.  
  25. flash.mode: Camera.FlashRedEyeReduction
  26.  
  27. imageCapture {
  28. resolution: Qt.size(80, 80)
  29. onImageCaptured: {
  30. photo.source = preview
  31. }
  32. }
  33. }
  34. }
  35.  
  36. Image {
  37. id: photo
  38. width: 80
  39. height: 80
  40. }
  41. Button {
  42. width: 50
  43. height: 20
  44. onClicked: camera.imageCapture.capture()
  45. }
  46. }
  47. }
To copy to clipboard, switch view to plain text mode 

The VideoOuput shows the image correctly, 80x80 cropped image, but when the button is clicked and captures the image, the image captured isn't cropped and has a resolution of 640x480 pixels.

How can I capture what is showing the VideoCapture (a 80x80 pixels cropped image)?