RSS/Atom feed Twitter
Site is read-only, email is disabled

transparent border when scaling etc

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

transparent border when scaling etc Eric Daoust 17 Jul 03:26
Eric Daoust
2009-07-17 03:26:59 UTC (over 15 years ago)

transparent border when scaling etc

This concerns the "added transparent border" bug (feature?):

http://bugzilla.gnome.org/show_bug.cgi?id=549999

From my observations, it seems the border removal may have to be done

through image crop after the completion of the image. I will refer to the gegl/operations/affine.c file's method get_bounding_box. Our goal was to hopefully feed both the larger bounding box AND the smaller box that terminates at the borders of the image itself. Unfortunately, the larger bounding box is actually not directly fed to anything; it is instead returned to the caller. This method is an inheritance of a parent class (99% sure) so changing the return type could be a real pain in the neck.

The code which "adds the border" is this:

in_rect.x += context_rect.x; in_rect.y += context_rect.y;
in_rect.width += context_rect.width; in_rect.height += context_rect.height;

Nicolas' idea was that a second bounding box would be "carried around," one which has not been enlarged to accomodate the footprint of the sampler as above.

Comments?

Eric