Re: Need help getting odd shape from a bitmap.
- Posted by Al Getz <xaxo at AOL.COM> Oct 19, 2000
- 442 views
It sounds like your going to stretch parts of the bitmaps to fit the rectangle--i hope you realize that for many shapes your going to get nothing short of op-art out of it? When you try to map a diamond to a rectangle you end up s t r e t c h i n g a few points to a whole line for some lines, while retaining full length for other lines. I'd like to see what you end up with too. WinAPI has the function call 'StretchBitmap()' which can be used on individual lines with a little care. If the results are not acceptable, you'll have to write your own stretch algorithm. Depending on what your going for, this might be the coolest method as you can then vary the algorithm to obtain differing effects. Hope you can post some near final results when you decide. Good luck with it. --Al