RE : Drawable copying / manipulation in plugin development

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

 



Thanks, I actually hadn't realized that the data wasn't sent to the plug-in. Is there any way for a plug-in to use a function similar to gimp_drawable_transform_matrix_default() with data the it has access to?

They say images are worth a thousand words... So what I'm basically trying to do is turn this image:

http://mat.ulaval.ca/~fgingras/misc/1.png

into this one:

http://mat.ulaval.ca/~fgingras/misc/2.png

Thanks again!

François

________________________________________
De : Sven Neumann [sven@xxxxxxxx]
Date d'envoi : 8 janvier 2010 17:46
À : François Gingras
Cc : gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
Objet : Re:  Drawable copying / manipulation in plugin development

On Fri, 2010-01-08 at 16:37 -0500, François Gingras wrote:
> Greetings,
>
> Sorry if this sounds very newbie-ish; I'm somehow new to GIMP plugin
> development. Is there any quick way to copy a drawable in memory, in
> order to manipulate it, and then manipulate the original again?
> Basically, what I'm trying to do is transforming an image in a few
> different ways (every time using the original image) using
> gimp_drawable_transform_matrix_default, keeping results in memory, and
> then putting all these results in one image, which would be sent back
> to the core.

I don't quite understand what you are up to. All the data is kept in the
core if you use gimp_drawable_transform_matrix_default(). You just tell
the core to transform the drawable. No data is actually sent to the
plug-in.

I assume that the drawable your plug-in is working with, is actually a
layer. Then the easiest way to create a copy of the drawable is to
duplicate that layer.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux