Sign in to follow this  
darkpgn

squeez image

Recommended Posts

hi i am trying to write a program that will take a rectangle and squeez the image to the middle of the picture...so that it would look like this... original ------- |-----| |-----| ------- squeezed --___-- |-----| |-----| --```-- based on trig functions to calculate how much it should squeez it as it get closer to the middle...

Share this post


Link to post
Share on other sites
sorry i have been looking at this thing for like 3 weeks and have gotten no where...

im working with panoramas and im trying to make the image look like its on the inside of a cylinder. but i dont know how to do this...

we have had some crazy formulas and non of them have worked...we only have access to c# libraries we cant use opengl or anything like that so we basicaly have to go through pixel by pixel using lockbits.

the hardest part for us is getting the formual and then applying it so that we get the image to appear as though it is closer on the edges of the picture than in the middle...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this