Create a QImage of the same size. Create a QPolygon to represent you drawn area. Now loop through the length and breadth of the image. At each point, if QPoygon::contains(point), set original QImage:ixel else set some default.
Create a QImage of the same size. Create a QPolygon to represent you drawn area. Now loop through the length and breadth of the image. At each point, if QPoygon::contains(point), set original QImage:ixel else set some default.
chong_kimkeang (27th September 2012)
Bookmarks