How to convert QPixMap to QPainterPath and vice-versa?

后端 未结 1 621
挽巷
挽巷 2021-01-28 02:01
  • I am trying to implement a pattern recognition algorithm.
  • I have set up a QWidget with a QPixMap on which the user can draw the pattern with his/her mouse.
相关标签:
1条回答
  • 2021-01-28 02:11

    Sounds like you are looking for somekind of heuristics for vectorization of pixel data. There is no such thing built into Qt. I would suggest researching vectorization.

    The best I can suggest is that if you are also writing the drawing tool, then trace the path as the user draws it and save it as QPicture, that way it is never on pixel form.

    0 讨论(0)
提交回复
热议问题