[Gimp-developer] Gimp-python: Artefacts when creating layer

Alan Horkan horkana at maths.tcd.ie
Sat Jun 3 05:39:16 PDT 2006


On Sat, 3 Jun 2006, Simon Budig wrote:

> Date: Sat, 3 Jun 2006 14:29:02 +0200
> From: Simon Budig <simon at budig.de>
> To: gimp-developer at lists.XCF.Berkeley.EDU
> Subject: Re: [Gimp-developer] Gimp-python: Artefacts when creating layer
>
> Sebastian Breuers (sebbreuers at gmx.de) wrote:
> > The plug-in, I'm writing, creates a number of layers, every layer receives an
> > object, for example a circle (created by ellipse selection, an selection
> > fill), but somewhen, don't know why, the layer contains not only the desired
> > circle but also some artefacts. Stripes, areas of white, the mouse cursor,
> > things they should not be there.
> > Is that a problem that can be solved by a certain programmable handling or do
> > I have to remove these artefacts by hand?
>
> That sounds as if you don't clear the layer before you use it for the
> first time. Layers created from a Plugin are not initialized from the
> very beginning. They need to be cleared using e.g. gimp_drawable_fill.

I remember getting caught out by this too.  Why is necessary to manually
clear a new layer rather than have it done automatically?

-- 
Alan



More information about the Gimp-developer mailing list