diagrams-cairo-1.3.0.5: 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 -> QDiagram Cairo V2 Double Any -> IO (Ptr Word8) Source

Render a diagram to a new buffer in memory, with the format ARGB32.

renderForeignPtr :: Int -> Int -> QDiagram Cairo V2 Double Any -> IO (ForeignPtr Word8) Source

Like renderPtr but automatically garbage collected by Haskell.