Re: Project Bid

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu