diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-04-04 00:32:52 -0400 |
commit | aaea166135ace01709f7e0be64f40be80f4107ec (patch) | |
tree | 0e794ef7a723e4aaf909b841a6816e405b4ceca1 /libs/canvas/test/hello_world.cc | |
parent | 1d8bac08c0c00d44e22c581768a275e1b21a99a7 (diff) |
initial commit of hand merging, plus getting "ancient" waf script to work correctly
Diffstat (limited to 'libs/canvas/test/hello_world.cc')
-rw-r--r-- | libs/canvas/test/hello_world.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/canvas/test/hello_world.cc b/libs/canvas/test/hello_world.cc new file mode 100644 index 0000000000..38944f9220 --- /dev/null +++ b/libs/canvas/test/hello_world.cc @@ -0,0 +1,13 @@ +#include "canvas/canvas.h" +#include "canvas/rectangle.h" + +using namespace ArdourCanvas; + +int main () +{ + ImageCanvas* c = new ImageCanvas; + Rectangle* r = new Rectangle (c->root ()); + r->set (Rect (0, 0, 256, 256)); + c->render_to_image (Rect (0, 0, 1024, 1024)); + c->write_to_png ("foo.png"); +} |