Re: This takes 30 secs to render

2018-06-05 Thread Lucky B.C
Hi, Another way to render the image better than cairo did, using OpenGL Area. You could find an example about it in gtk-demo. On Fri, Jun 1, 2018 at 6:45 AM, Tarie Nosworthy via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > > > Is there any way to make this better? The image loaded

Re: This takes 30 secs to render

2018-06-01 Thread Eric Cashon via gtk-app-devel-list
The other way to go about it is to just use cairo. I don't think that it will give a speed improvement but it might be worth a try. I figure you are trying to scale the png first and then draw it in a widget. Once the image is sized it shouldn't be a problem to draw quickly. Eric //gcc

This takes 30 secs to render

2018-05-31 Thread Tarie Nosworthy via gtk-app-devel-list
Is there any way to make this better? The image loaded is 3.3MB PNG int nWidth = gdk_pixbuf_get_width(pImage), nHeight = gdk_pixbuf_get_height(pImage); gtk_widget_set_size_request(widget, nWidth, nHeight); gdk_cairo_set_source_pixbuf(cr, pImage,