Im trying to rotate an image when I show it in an Image control. Currently the image is showing up like this:
I would like to rotate it 90 degrees to the right. My current code looks like this:'
Image {
id: imagePhoto
anchors.fill: parent
width: parent.width
height: parent.height
transform: Rotation{
id: rotateImagePhoto
angle: 0
origin.x: 0
origin.y: 0
}
}
So I tried playing with the angle:
transform: Rotation{
id: rotateImagePhoto
angle: 90
origin.x: 700
origin.y: 700
}
It shows up correctly:
What I'm not understanding is why I had to put those values for the x/y. I've looked at that following site, but I'm not understanding.