Re: Project Bid
- Posted by guest at rapideuphoria.com Apr 08, 2004
- 492 views
posted by: Tommy Carlier < tommy.carlier at pandora.be > If you use Win32Dib, you can do it like this: - user selects a wall with a polygon-selection tool (limited to 4 points). - user selects a pattern. - application first makes a new bitmap with a width and height of the rectangle surrounding the polygon (the polygon has to be totally inside the rectangle). - application paints the pattern onto that bitmap (tileDibToDib). - application paints this bitmap as a transformed polygon (the selected polygon) onto the original picture (drawDibTransformedPolygon). That way, the pattern has the same perspective as the selected wall. In the next version of Win32Dib, I'll probably add alpha-blending of bitmaps, which means you can blend the original lighting of the wall with the new pattern.