# squeez image

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

## 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 on other sites
so what's the question?

##### 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...

1. 1
2. 2
Rutin
20
3. 3
khawk
17
4. 4
A4L
14
5. 5

• 12
• 16
• 26
• 10
• 44
• ### Forum Statistics

• Total Topics
633759
• Total Posts
3013715
×