2 Attachment(s)
Fast Image Warping(with animated Demo) [vb5 & vb6]
This is a super quick algorithm to warp images.
There are 4 red dots, those are the handles - click and drag them to warp the image!!!
The secret is plgblt being used to draw the scanlines.
Overdraw is an antialiasing factor used for strecthing larger than the original image.
When the left side scanline finishes lower that the right side the image is flipped .
Re: Fast Image Warp (image taffy) [vb5 & vb6]
Fixed a bug that I injected into the routine when I tried to flip the image - I fixed that flip bug. Reposted fixed code.
Current Oversample setting is 5, adjust as need - smaller images don't require large settings therefore can render faster.
1 Attachment(s)
Re: Fast Image Warp (image taffy) [vb5 & vb6]
Here's an animated Demo to show the possiblities