Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Scale down image size "onCameraPickerFinished"

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22404

    Sergej
    import Felgo 3.0
    import QtQuick 2.12
    import QtMultimedia 5.12
    
    
    Page {
        id: currentPage
        title: qsTr("Camera")
        Component.onCompleted: {
            nativeUtils.displayCameraPicker("take picture")
        }
    
    
        Connections {
            target: nativeUtils
            onCameraPickerFinished: {
                if(accepted)
                {
                    console.log("TODO: RESIZE(path) IMAGE HERE");
                    logic.storeImage(path);
                }
                currentPage.navigationStack.pop();
            }
        }
    }
    
    
    
    Hi,
    is there a qml way of scaling images down on onCameraPickerFinished ?
    
    
    best regards
    
    
    #22408

    Alex
    Felgo Team
Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.