[Mono-list] Drawing

Miguel de Icaza miguel@ximian.com
Sat, 07 Feb 2004 11:24:10 -0500


--=-zdt6e9hCUcGGTG5yog/o
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hey,

> As i've never done any image building/manipulation with Mono I was
> wondering what API's I should be looking at.  I'd like to be able to
> build visual views of a databases table structure.  nothing complicated
> - just something to help with another project.  

We also have bindings for Cairo on CVS.

The following patch lets you run the Cairo samples in Gtk#





--=-zdt6e9hCUcGGTG5yog/o
Content-Disposition: attachment; filename=x
Content-Type: text/plain; name=x; charset=iso-8859-1
Content-Transfer-Encoding: base64

PyBQaXhtYXAuY3VzdG9tDQo/IGENCj8gaW1hZ2UucG5nDQo/IHgNCkluZGV4OiBEcmF3YWJsZS5j
dXN0b20NCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvY3ZzL3B1YmxpYy9ndGstc2hhcnAvZ2RrL0Ry
YXdhYmxlLmN1c3RvbSx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNg0KZGlmZiAtdSAtcjEuNiBE
cmF3YWJsZS5jdXN0b20NCi0tLSBEcmF3YWJsZS5jdXN0b20JMjcgT2N0IDIwMDMgMjA6MDA6MTUg
LTAwMDAJMS42DQorKysgRHJhd2FibGUuY3VzdG9tCTcgRmViIDIwMDQgMTY6MDI6NDYgLTAwMDAN
CkBAIC00MSwzICs0MSwxOCBAQA0KIAlnZGtfZHJhd19saW5lcyhIYW5kbGUsIGdjLkhhbmRsZSwg
cG9pbnRzLCBwb2ludHMuTGVuZ3RoKTsNCiB9DQogDQorW0RsbEltcG9ydCgibGliZ2RrLXdpbjMy
LTIuMC0wLmRsbCIpXQ0KK2ludGVybmFsIHN0YXRpYyBleHRlcm4gSW50UHRyIGdka194MTFfZHJh
d2FibGVfZ2V0X3hkaXNwbGF5IChJbnRQdHIgcmF3KTsNCisNCitbRGxsSW1wb3J0KCJsa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