Results 1 to 2 of 2

Thread: Skew bitmap to QPolygonF

  1. #1
    Join Date
    May 2011
    Posts
    11
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Skew bitmap to QPolygonF

    Hi,

    I just want to make sure I do not overlook something in the documentation. I have a QPolygonF that defines a non-rectangular shape and would like to fit a QImage or QPixmap into that shape by moving the pixels. I would expect such a functionality in QPainterPath or QGraphicsSceen but couldn't find anything. Am I too stupid to read the documentation? Or is it simply missing and I have to code that stuff on my own?

    Thanks

    Oliver

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,229
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Skew bitmap to QPolygonF

    I have to code that stuff on my own?
    You have an ill-defined problem, if your QPolygonF can be arbitrarily complex. Images are in general rectangular. You can apply an arbitrary QTransform to a QImage (see QImage::transformed()), but this is only for 4-sided to 4-sided transformations.

    Otherwise, you may find what you need in non-Qt libraries, like OpenGL or OpenCV.

Similar Threads

  1. Replies: 2
    Last Post: 2nd November 2015, 12:20
  2. Skew/warp an image along a polyline
    By kiozen in forum Qt Programming
    Replies: 0
    Last Post: 24th June 2014, 08:58
  3. Replies: 0
    Last Post: 27th March 2011, 11:19
  4. QPolygonF precision?! is it possible?!
    By fatecasino in forum Newbie
    Replies: 11
    Last Post: 27th January 2011, 03:36
  5. warning: Clock skew detected.
    By ashukla in forum General Programming
    Replies: 2
    Last Post: 23rd October 2007, 09:42

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.