Henrik Brix Andersen writes:
 > Using gimp_pixel_rgn_set_row() may work for some images, but since
 > GdkPixbufs internally have aligned data which may result in padding
 > garbage inserted between two rows, you will need to use
 > gdk_pixbuf_get_rowstride() and iterate over the rows one by one.

But couldn't one at least check if gdk_pixbuf_get_rowstride()
indicates that there isn't any padding, and in that case use
gimp_pixel_rgn_set_rect()? At least on my aging PIII-450, the
difference in speed is huge.

 > Unfortunately this doesn't seem to be possible. Believe me, I've tried
 > :(.

OK, I believe you...


Gimp-developer mailing list

Reply via email to