Pixelbuffer to draw on a surface
visitor via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 30 05:11:36 PST 2015
> but there is no specific solution inside GTKD?
for example, in pseudo code
auto surf = new Surface(.......); // look for cairo.Surface doc
auto cr = cairo.Context.Context.create(surf);
// pb is an existing gdkpixbuf.Pixbuf
gdk.Cairo.setSourcePixbuf(cr, pb, width, height);
cr.paint();
adding onDraw event listener on the widget owner of the Pixbuf
(gtk.Image for example)
More information about the Digitalmars-d-learn
mailing list