Sj.
Sj.

Reputation: 1724

Image Bending transform in ios

I think we cannot have any bending transform in iOS, not even with 3D transformations, but can we define some transformation matrix and acheive it?

Or how do we draw images to a spherical/cylindrical context in OpenGL ES? I'd like to bend images in my iPhone app.

And this bending is variable dependend on the curvature of the context.

A typical example would be a photo on a mug.

All your help is appreciated.

Upvotes: 1

Views: 1290

Answers (1)

Sj.
Sj.

Reputation: 1724

Finally I've came to an end in this. Instead of going for Open GLES , I used the ImageMagick Library which was very helpful.

Also I found a bash script to warp the images in cylindrical shapes using ImageMagick C APIs.

Refer Cylinderize Script. Just thought that it might be usefull to someone. Cheers.

Upvotes: 1

Related Questions