blob: 38944f92209de916935aaae5ea0e0fafd4d2705c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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");
}
|