Guest User

Untitled

a guest
Jun 29th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.31 KB | None | 0 0
  1. let width, height = (float size_x), (float size_y) in
  2. let buffer = open_out outfile in
  3. let surface = Cairo.SVG.create_for_stream ~output:(output_string buffer) ~width ~height in
  4. let ctx = Cairo.create surface in
  5. let _ = Cairo.set_line_width ctx 1. in
  6.  
  7. ... do stuff ...
  8.  
  9. Cairo.stroke ctx ;
  10. close_out buffer
Advertisement
Add Comment
Please, Sign In to add comment