Yes, both as sources and destinations. What you can do :

* Convert between Cairo ImageSurfaces and Prima images. Supported
formats are rgb24 and argb32 as color images and a8 and a1 as alpha masks.

* Draw using cairo calls on the following surfaces (including alpha, blendings 
etc):
- native win32/x11 windows, pixmaps and bitmaps
- win32 printer HDC
- Prima's postscript backend

* Use Prima semantics for drawing on a Cairo context (work in progress,
extra hands would be helpful).

There's even a primitive first-person shooter included as an example:

https://github.com/dk/Prima-Cairo/blob/master/examples/raycaster.pl

/dk



On Sat, Jun 28, 2014 at 02:51:21PM -0400, Chris Marshall wrote:
> Great!  Can Prima::Cairo work with memory buffers as
> sources or destinations?
> 
> --Chris
> 
> On Sat, Jun 28, 2014 at 5:28 AM, Dmitry Karasik <[email protected]> wrote:
> >>      NOTE: I explicitly call out Prima::OpenGL because
> >>      I think for high performance and portable graphics and
> >>      realtime visualization, OpenGL is now the default
> >>      standard---even including GPU compute shaders in
> >>      the latest version.
> >
> > I wrote recently Prima::Cairo, that can possibly get useful for
> > PDL outputs in svg/pdf and general drawing with blending and antialiasing.
> >
> > --
> > Sincerely,
> >         Dmitry Karasik
> >

-- 
Sincerely,
        Dmitry Karasik


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to