Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1514

Drawing a "page curl" effect

$
0
0
Name:  Cairo.jpg
Views: 28
Size:  21.8 KB

I would like to ask for advice on how to achieve such an effect as can be seen in the iPad-only app "Book Creator" (free of charge on the iPad App Store).

The app allows to put text and photos onto images. The images serve as "pages" of a virtual book that the user can curl / flip using a finger. A quick finger stroke will turn / flip the page, but moving the finger slow from an edge inwards reveals a nice page curl. Here is a video that shows this in action:

.

I am not sure if it involves a matrix or if can be solved by a projection.

I posted this task on a freelancer forum, but nobody had an idea how to do it, so I will must try to solve it myself.
If anybody has an idea how to start, please shoot.

I am using vbRichClient, so I would like to use Cairo if possible. But if there is any other graphics library capable and perhaps even faster for such a purpose, then of course I would rather use this.
I tried the project sample in Olaf's CairoTutorial, but it was really slow even for a small image already. He mentioned that projection is not natively supported by Cairo and runs on CPU instead.

I guess that projection is what I need. But perhaps I even need a more complex matrix, and I guess if not even projection is supported by Cairo, then also Matrix won't be natively, so perhaps Cairo is not the solution in this case.

Thank you!
Attached Images
 

Viewing all articles
Browse latest Browse all 1514

Trending Articles