Jump to content
  • Advertisement
Sign in to follow this  
darkpgn

squeez image

This topic is 4277 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!