Re: [Gimp-user] flip through python console problems

On 12-09-13 03:16 PM, free wrote:
pdb.gimp_item_transform_flip(layer, 320, 0, 320, 1)

the flip succeeds, but it generates a distortion on the flipped layer.
When I try to flip that layer through gimp's interface, it is smooth.

You probably want to use the "simple" flip function. The version you were using flips the drawable about a line specified by the coordinates given. My mind can't quite make out how the image/layer will change when doing a flip that is not about a center line so I haven't used the more general transform flip operation.

Try the following statement to do your flip
    pdb.gimp_item_transform_flip_simple(layer, 0, TRUE, 0.0)


Kevin.           |"Nerds make the shiny things that distract
Owner of Elecraft K2 #2172      | the mouth-breathers, and that's why we're
                                | powerful!"
#include <disclaimer/favourite> |             --Chris Hardwick

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]