[Gimp-developer] (gimp-image-add-layer)?

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

 



All,

I've just started hacking in the Gimp via scheme and clearly don't understand (gimp-image-add-layer).

What I've read suggests that the following ought to get me a new layer in an image.

=> (set! the-image-id (car (gimp-image-new 10 10 GRAY_IMAGE)))

0
=> (set! the-layer-id (car (gimp-layer-new the-image-id 10 10 GRAY_IMAGE "a named layer" 100 NORMAL)))

2
=> (gimp-image-add-layer the-image-id the-layer-id -1)

ERROR: Procedural database execution failed:
    (gimp_image_add_layer 0 2 -1)
A "procedural database execution failure" suggests that something quite fundamental is going on.  (It's not just me getting types or syntax confused.)

Can anyone help?  Can anyone tell me how I might investigate this intelligently?

Thanks.
--
,Doug
Douglas Lewan
email: d_lewan2000@xxxxxxxxx
cell: 908 7207 908
        Design: The activity of preparing for a
        design review.

[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