Somebody called me?
About Allegro.pas 4In short: Yes, it is possible.
The long answer:
There's an example in subdirectory "examples/lazarus"
but it is not fast because it just copies each pixel. Actually that example is very uneficent and I'm sure it can be improved a lot (IIRC there are a way to write directly in to the TImage data, which should be lot faster as you can avoid screen update until you finished the work).
Theoretically, there are some Allegro's functions that allows to "transport" an Allegro bitmap to a structure that can be used directly by desktop API. Unfortunately I wasn't able to make it run on Free Pascal, and I have no idea why. Also, it would force to use OS dependent code (it's not the same Windows than Linux than MacOS...) and I really hate to use and write OS dependent code, so I didn't tried again.
About Allegro.pas 5 beta (and SVN)Actually I have no idea if it's possible. Allegro 5 defines a whole new API, that includes multiple window management, and I'm not familiar and comfortable with it (that explains why Allegro.pas 5 is still unfinished and unstable), Anyway, I think it should be possible. Allegro 5 allows to use OpenGL, so if you create an OpenGL context in your TForm may be you're able to use Allegro.pas to upload textures to the OpenGL server.
A sort of disclaimerI really want to work more on Allegro.pas (both versions 4 and 5), but sadly I'm very busy right now. Anyway I do some upgrades time to time uploading them to the SVN repository (TRUNK for version 4, BRANCHES/5 for version 5), and I'm glad that people uses it and asks about problems, because it helps me to improve the library. So keep up the work, and may be we found an improvement and a new version of Allegro.pas would be released soon.