On 9/17/06, Sven Neumann <[EMAIL PROTECTED]> wrote:
Hi,

On Fri, 2006-09-15 at 09:39 +0930, David Gowers wrote:

> It's much easier to code 'image to selection':
>
>         c = pdb.gimp_channel_new_from_component(image, GRAY_CHANNEL,
> 'TEMP IMAGE2SELECTION')

This works for grayscale images only. An RGB image doesn't have a
grayscale component. For grayscale images there is also no point in
writing such a script because you can already choose "Channel to
Selection" from the channel's right-click menu.

I tested it for RGB images and it appears to work correctly.
Perhaps it just uses the 1st channel (R) though.

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

Reply via email to