Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-11 Thread Tadej Borovšak
Hello. Composing function is a bit hard to use at first. Your code should probably look something like this (I haven't tested it). CODE gchar *imgSrcName; GdkPixbuf *src, *interm, *result; guint width, height, xOffset, yOffset; int i = 0; ... src = gdk_pixbuf_load_from_file_at_scale(

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-11 Thread Todor Todorov
Thank you so much for the answer! The correct use (yours) is gdk_pixbuf_composite( interm, result, xOffset, 0, width, height, xOffset, 0, 1.0, 1.0, GDK_INTERP_NEAREST, 255 ); as opposed to (mine) gdk_pixbuf_composite( interm, result, xOffset, 0, width, height, /* !!! */ 0, 0, 1.0, 1.0,

gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if,dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
Hello list, I am trying to create a thumbnail from a digital image, which should not exceed 128 px width or height. After loading the image, I apply the EXIF orientation information, if available. In order to prettify the resulting display, I would like to place the pixbuf horizontally

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
OK, something happened to the attached images, so let's see about inlining them ... offset is zero, no artifacts offset is zero, no artifacts offset is 16, artifacts at the right side of the imageoffset is 16, artifacts at the right side of the image On 11/10/2009 06:39 PM, Todor Todorov

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
That did not work either, so I uploaded the 2 images on the Net and here are the links for the interested: [no artifacts] http://www.inselpix.com/img/833790624900.jpg [artifacts] http://www.inselpix.com/img/478403985121.jpg I hope someone can tell me, what I missed/did wrong when composing

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is 0. Help please?

2009-11-10 Thread Todor Todorov
That did not work either, so I uploaded the 2 images on the Net and here are the links for the interested: [no artifacts] http://www.inselpix.com/img/833790624900.jpg [artifacts] http://www.inselpix.com/img/478403985121.jpg I hope someone can tell me, what I missed/did wrong when composing