[Interest] How to crop and scale QCamera input to a widget
Mark Gaiser
markg85 at gmail.com
Tue Mar 10 18:52:26 CET 2015
On Tue, Mar 10, 2015 at 12:32 PM, nus1998 <nus1998 at yeah.net> wrote:
> Hi All,
>
> My camera resolution is 2048 * 1536, now I want to display the center 1000
> * 1000 pixels on a 500 * 500 widget, so far I only found setGeometry to
> crop the image but can't scale it, is there any item for that?
>
> thanks in advance
> Jie
>
>
Just guessing. Would the Scale{} item help you?
http://doc.qt.io/qt-5/qml-qtquick-scale.html
You would probably have the calculate the optimal scale for your desired
width/height.
>
> <#14c0375a88560e46_>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150310/02b08d68/attachment.html>
More information about the Interest
mailing list