diagrams-cairo-1.2: Cairo backend for diagrams drawing EDSL

Copyright(c) 2012 Diagrams-cairo team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.Backend.Cairo.Ptr

Description

Render diagrams to buffers in memory.

Synopsis

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.