Perspective texturing

Hi all,
I want to draw something like this
http://www.antigrain.com/screenshots/perspective4.jpg
Is is possible to do this using JUCE?

JUCE seems to do most of my rendering tasks very well and very fast. I don’t want include entire anti-grain library, just for doing one chore.

Regards
Yogesh

No, I’ve never attempted to do any 3d ops, but you could use opengl, I guess.

There’s nothing magical about the operation as such. A rectangular image is interpolated to fit onto a non rectangular area, pixel by pixel. Bilinear means, that it does linear interpolation on both axises.
OpenGL will do it for you, and much much faster.

Jules,
I have tried opengl and having a lots of trouble because, opengl cannot handle very large textures.

Anyways , How difficult it would be to add 3D operations(on images) to JUCE?
Any ideas or pointers?

Many Thanks,
Yogesh

Rock,
It would be great if you could point me to some sample code or article or some other resource, on how its done.

Thanks
Yogesh

I don’'t have anything handy, but you should be able to find something on flipcode or gamedev.net.
But basically, you view the image file as a lookup table and use an a algo similar to a regular line drawing thing, that picks it’s colour from the image on a percentage basis.