what algorithm is behind Image Stretch? 
Author Message
 what algorithm is behind Image Stretch?

can someone tell me what algorithm is used by MS to perform
image stretch in VB3.0? any hints will be appreciated.

-jun li




Sun, 06 Sep 1998 03:00:00 GMT  
 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.



Mon, 07 Sep 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Am I too far behind?

2. Apply a stretched image as a listview background

3. Saving image stretch results?

4. auto stretch a image in picturebox to a correct ratio

5. Stretched Image on PictureBox?

6. How to stretch image?

7. Strange Distortion of Image with Stretch = True

8. image/picture control - stretch info

9. stretching Images in VB5

10. Image stretching

11. How to Resize/Stretch images in an ImageList

12. VB 6 Image control stretching limit problem

 

 
Powered by phpBB® Forum Software