
what algorithm is behind Image Stretch?
Quote:
>can someone tell me what algorithm is used by MS to perform
>image stretch in VB3.0? any hints will be appreciated.
I dunno, but here's how I would do it:
Say you have a bitmap A, and want a twice-as-big bitmap B.
For every (x,y) coordinate in B, divide by the factors you
need to and get the color from A.
That's probably *really* slow in VB, so just use the
Windows StretchBlt() function.
--
Celebrate Hannibal Day this year. Take an elephant to lunch.