Search code examples
c#imagepanoramas

Move center of the 360 deg. panorama image


I have a 360 degree image and want to move it in C# by x degrees horizontally.

Here is an example:

enter image description here

and here is result I want to get:

enter image description here

Not sure where to start - should it be 'sliced' into 360 pcs and redrawn or is there other C# approach to move an image in such a way.


Solution

  • Assuming you are talking about simply panning the image and not sphere-mapping it or anything fancy, you only need to cut it into two pieces.

    screenshot

    Just make a new bitmap of the same size, then use Graphics.DrawImage to draw the two sections in reverse order.