Alek smierciak thank you. I tried an approach which is not working. here is the code
import QtQuick 2.0
Rectangle {
width: 640
height: 480
color: "white"
Image {
id: imgItem
fillMode: Image.PreserveAspectFit
source: "/home/bts-004/Desktop/test1.jpg"
}
MouseArea {
anchors.fill: parent
onClicked: {
canobj.loadImage("/home/bts-004/Desktop/test1.jpg")
canobj.save("/home/bts-004/Desktop/test_duplicate.jpg")
}
}
Canvas{
id:canobj
}
}
Is there any thing I have to add.
↧