On 10 Apr 2002, Sven Neumann wrote:

> Hi,
> 
> Nathan C Summers <[EMAIL PROTECTED]> writes:
> 
> > > - Provide an API that allows the plug-in developer to use the same
> > >   function for manipulating the image as well as the preview. The
> > >   preview would have to provide a drawable API and pixel-regions
> > >   etc. in order to achieve this goal. 
> > 
> > There is a serious problem here: what if two plug-ins are open at the same 
> > time and want to draw on the same image?  We wouldn't just need tile-level 
> > locking but layer or image-level locking as well, and the preview widget 
> > would have to gracefully fall back or force the other plugin to give up 
> > its hold on the display. You could run into serious UI issues here.
> 
> the idea was not to use the original drawable but to have the preview
> create a scaled version of the selected area and expose it to the
> plug-in as if it was a drawable. This will need some hacks in the
> proxy drawable code in libgimp but I think it could be done.

Oh, ok. That's a good idea.  I parsed that sentence as meaing that the 
same function could be used to preview code in the preview widget or in 
the image window (like the jpeg plugin preview hack). Having multiple 
simultaneous previews in the same image window just wouldn't work.

Rockwalrus

_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to