Re: [Gimp-developer] gimp_pixel_rgn_resize help

2006-08-10 Thread Sven Neumann
Hi, On Tue, 2006-08-08 at 17:02 -0400, Brohan wrote: I'm well aware of gimp_zoom_preview_get_factor(), but there isn't a matching fuction such as gimp_zoom_preview_set_factor(). I have changed the API a little now, introducing a way to get access to the GimpZoomModel that is being used by the

[Gimp-developer] gimp_pixel_rgn_resize help

2006-08-10 Thread Brohan
I'm sorry for not writing this to the mailing list, my client settings are a bit funky and had me writing emails only to Sven. Sorry :| Hi, On Tue, 2006-08-08 at 17:02 -0400, Brohan wrote: I'm well aware of gimp_zoom_preview_get_factor(), but there isn't a matching fuction such as

Re: [Gimp-developer] gimp_pixel_rgn_resize help

2006-08-10 Thread Sven Neumann
Hi, On Thu, 2006-08-10 at 13:29 -0400, Brohan wrote: I'm still having the same issue as before with the same error as before. (gimp:26837): Gimp-Plug-In-WARNING **: expected tile ack and received: 5 I've ran gdb and set every possible breakpoint and it always says that the program

Re: [Gimp-developer] gimp_pixel_rgn_resize help

2006-08-10 Thread Brohan
Thanks for your attention, I've got a case all written up. http://cim.mcgill.ca/~brohan/compare-case.tar.gz Its as small as I could make it, it does have a lot of GTK junk to get all the stuff together. It makes the same errors as my plugin, to reiterate; to make it crash you can a) Zoom

Re: [Gimp-developer] gimp_pixel_rgn_resize help

2006-08-08 Thread Sven Neumann
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

Re: [Gimp-developer] gimp_pixel_rgn_resize help

2006-08-08 Thread Sven Neumann
Hi, On Tue, 2006-08-08 at 10:17 -0400, Brohan wrote: Ah, I expected it to do any scaling. Are there any library functions that do do scaling? I was expecting gimp_pixel_rgn_resize() to do the scaling, as resizing the pixel region might entail scaling. Resizing in GIMP terms usually just means

Re: [Gimp-developer] gimp_pixel_rgn_resize help

2006-08-08 Thread Sven Neumann
Hi, On Tue, 2006-08-08 at 11:36 -0400, Brohan wrote: Ah, its a scaled *up* picture that I need. The problem with GimpZoomPreivew (And I have looked into it), is that there's no way to get the zoom factor to set on another preview. There's gimp_zoom_preview_get_factor() for this purpose. A

[Gimp-developer] gimp_pixel_rgn_resize help

2006-08-02 Thread Brohan
Hi everyone, 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 */