Copyright | (c) 2012 Diagrams-cairo team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | diagrams-discuss@googlegroups.com |
Safe Haskell | None |
Language | Haskell2010 |
Render diagrams to buffers in memory.
Documentation
renderPtr :: Int -> Int -> Format -> Diagram Cairo R2 -> IO (Ptr Word8) Source
Render a diagram to a new buffer in memory, with the format ARGB32.
renderForeignPtr :: Int -> Int -> Diagram Cairo R2 -> IO (ForeignPtr Word8) Source
Like renderPtr
but automatically garbage collected by Haskell.
renderForeignPtrOpaque :: Int -> Int -> Diagram Cairo R2 -> IO (ForeignPtr Word8) Source