Re: [Gimp-developer] Hard edged Ink tool?

2006-08-25 Thread David Gowers
On 8/26/06, David Gowers <[EMAIL PROTECTED]> wrote:
On 8/26/06, Sven Neumann <
[EMAIL PROTECTED]> wrote:
Hi,On Fri, 2006-08-25 at 20:01 +0930, David Gowers wrote:> Is there some simple way to achieve hard-edged rendering for the Ink> tool?Should be a simple change, just turn off supersampling in the ink code.
Ah, the #define SUBSAMPLE 8 line. Changing it to 1 does indeed do what I wanted.Actually, I take that back. I'm looking for normal supersampling  which is subsequently alpha-thresholded (exactly the way the ink and airbrush tools work in INDEXED mode.)
The behaviour of the Ink tool without supersampling is unacceptably chunky.So it looks like this may not be possible :(
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Hard edged Ink tool?

2006-08-25 Thread David Gowers
On 8/26/06, Sven Neumann <[EMAIL PROTECTED]> wrote:
Hi,On Fri, 2006-08-25 at 20:01 +0930, David Gowers wrote:> Is there some simple way to achieve hard-edged rendering for the Ink> tool?Should be a simple change, just turn off supersampling in the ink code.
Ah, the #define SUBSAMPLE 8 line. Changing it to 1 does indeed do what I wanted.
> I find the hard edged rendering used in INDEXED mode best for drawing> lineart, but dislike the other constraints (no drawing> modes/opacity/layer modes) imposed by working in INDEXED mode.Eeek, the way it acts in INDEXED mode is so ugly. Why would you want to
do this?Because it's easier to edit. If edges aren't defined in a binary way, it makes selecting portions of lineart and moving or removing them hard -- I have to set the threshold of whatever tool I'm using to a high value, but that high value will be not what I want for most of what I'm doing. I'm trying to avoid tedious fiddling.
Is there some specific part of the INDEXED behaviour that you are eeking about? I'm just looking for the hard edges.
> So far, I've tried to find the part of the code that handles indexed> images without success.Why would you look for it? That's completely unrelated here. The uglybehaviour in indexed mode is just a shortcoming of the code that
combines regions.It's good to know that. I previously got the impression that you were indifferent to GIMP's usefulness for editing INDEXED images. I certainly hope that I can substantially improve indexed drawing specifically, when GEGL is in use and I understand it. I think it would be relatively simple to bring INDEXED drawing to the level of usefulness demonstrated by professional pixeling tools (ProMotion, or the older DeluxePaint and it's clones) with a sound architecture like that.

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


Re: [Gimp-developer] Hard edged Ink tool?

2006-08-25 Thread Sven Neumann
Hi,

On Fri, 2006-08-25 at 20:01 +0930, David Gowers wrote:
> Is there some simple way to achieve hard-edged rendering for the Ink
> tool? 

Should be a simple change, just turn off supersampling in the ink code.

> I find the hard edged rendering used in INDEXED mode best for drawing
> lineart, but dislike the other constraints (no drawing
> modes/opacity/layer modes) imposed by working in INDEXED mode.

Eeek, the way it acts in INDEXED mode is so ugly. Why would you want to
do this? 

> So far, I've tried to find the part of the code that handles indexed
> images without success.

Why would you look for it? That's completely unrelated here. The ugly
behaviour in indexed mode is just a shortcoming of the code that
combines regions.


Sven


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


[Gimp-developer] How to keep a reference to an image in PyGimp?

2006-08-25 Thread David Gowers
I have an image. And I want to have two 'views' of the image -- not in the sense that gimp uses the word 'view', but I want an RGB version and Indexed version. I wrote a plugin to do this; if it detects a first time run (ie. no alternate views exist), it duplicates the image, converts it to GRAY mode, and stores references to the alternate views on each image. Then it tries to reconnect the displays belonging to the image to the alternate image. This succeeds, but the original image is destroyed. Is there some way that I can work around this, so that both images can be around? 
I understand it occurs because there is no longer a reference to the image. Is there a way to keep a reference despite the expiry of my plugin, or some other better way to handle this problem?
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Hard edged Ink tool?

2006-08-25 Thread David Gowers
Is there some simple way to achieve hard-edged rendering for the Ink tool? I find the hard edged rendering used in INDEXED mode best for drawing lineart, but dislike the other constraints (no drawing modes/opacity/layer modes) imposed by working in INDEXED mode.  So far, I've tried to find the part of the code that handles indexed images without success, and enabled the Hard edge toggle for the Ink tool (which does nothing in this case, as I suspected -- it only applies to brush-based paint tools).
Is this code shared between tools? (for instance, the Airbrush behaves similarly in INDEXED mode)Where would be a good place for me to look in order to implement this?
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer