On Thu, Dec 23, 1999 at 09:57:37PM +0000, Jean-Pierre Hoarau <[EMAIL PROTECTED]> wrote:
> name not compressed... My little program works near fine but I don't
> know how to obtain  the $drawable. If someone could debug me he would be

You can do this to get the first drawable:

$drawable = ($image->get_layers)[0];

> $drawable=$img->Drawable();
> $img->file_tiff_save($drawable,$img,RUN_NONINTERACTIVE,$image2,$image2,0,1);

And then you could write that like (your original call duplicates
arguments!) this:

($img->get_layers)[0]->file_tiff_save($image2,$image2,0,1);

> If someone could tell me what is a drawable I then could enter it

in your case a drawable is a layer. an image can have many layers and
channels.

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [EMAIL PROTECTED] |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

Reply via email to