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 to change the dimensions,
without touching the pixel data. That is the case here as well.

> On a side note, is there a way to create an empty pixel region that is
> not attached to a drawable, or create a drawable that a pixel region
> can attach to? (This is to dump the scaled thing onto)

No there isn't. And you should make yourself clear that the drawable
only exists in the GIMP core. If your pixel data is in the plug-in, you
can't simply attach it, it needs to be copied to the core.

If you need a scaled down version of the drawable, you may want to use
gimp_drawable_get_thumbnail_data(). Or use a GimpZoomPreview.


Gimp-developer mailing list

Reply via email to