[cairo] wrapping a complete surface at a given width

jan aerts (RI) jan.aerts at bbsrc.ac.uk
Mon Feb 18 12:32:37 PST 2008


Hi all,

I have been happily coding cairo (using the ruby bindings) to develop a
genetics visualization toolkit. At the moment I'm trying to add some new
functionality for which I need your help...

Many of the pictures generated by my toolkit are _very_ wide but have a
very limited height. Is there a way to basically wrap a whole picture at
e.g. 800 pixels? So suppose my ImageSurface is 2000 pixels wide and 200
pixels high, is there a transformation that can cut it in pieces of 800,
800 and 400 pixels wide and put those pieces underneath each other? So
the end result would be a picture of 800 pixels wide and 600 pixels
high...

Any help very much appreciated.

jan.

--
Dr Jan Aerts
Bioinformatics Group
Roslin Institute
Roslin EH25 9PS
Scotland, UK
tel: +44 131 527 4198

----...and the obligatory disclaimer----
Roslin Institute is a company limited by guarantee, registered in
Scotland (registered number SC157100) and a Scottish Charity (registered
number SC023592). Our registered office is at Roslin, Midlothian, EH25
9PS. VAT registration number 847380013.

The information contained in this e-mail (including any attachments) is
confidential and is intended for the use of  the addressee only. The
opinions expressed within this e-mail (including any attachments) are
the opinions of the sender and do not necessarily constitute those of
Roslin Institute (Edinburgh) ("the Institute") unless specifically
stated by a sender who is duly authorised to do so on behalf of the
Institute.


More information about the cairo mailing list