Hi, On Wed, 2006-08-02 at 17:57 -0400, Brohan wrote: > I'm building a plugin to compare two images side-by-side with panning > and zooming, and I'm having a bit of an issue with getting the zooming > to work. > > The way I'm doing it is initalizing a pixel region with the width > being (width of preview) / (zoom factor) and soforth. > > /* Snip */ > map_1 = gimp_drawable_get (vals.map_id_1); > gimp_pixel_rgn_init (&map_1_rgn, map_1, p1_x1, p1_y1, init_width, > init_height, FALSE, FALSE); > gimp_pixel_rgn_resize ( &map_1_rgn , p1_x1, p1_y1, p1_width, p1_height); > gimp_drawable_preview_draw_region (GIMP_DRAWABLE_PREVIEW (preview), &map_1_rgn); > /'* Snap */ What do you expect gimp_pixel_rgn_resize() to do? It doesn't do any scaling if that is what you are trying to achieve. Sven _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer