Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add new paint method ?
#4
(02-05-2019, 06:59 AM)Jack Parker Wrote: [by now i see that the scheme API cannot even read the color value at a pixel...

You overlooked gimp-drawable-get-pixel. However scripts that read pixel by pixel are awfully slow. In python you can access the pixels as arrays, so things are a lot faster.

To smooth the edges you can do a "Select-by-color", then Select>To path, and then Select>From path and bucket fill the result on another layer. And if you are script-prone you can also tweak the path with a script between the two Select operations, and for instance discard points that create local sharp edges, etc... (see the *vector* functions). I can show you plenty of example code for this, but all in Python Smile
Reply


Messages In This Thread
Add new paint method ? - by Jack Parker - 02-03-2019, 10:48 PM
RE: Add new paint method ? - by Ofnuts - 02-04-2019, 05:50 AM
RE: Add new paint method ? - by Jack Parker - 02-05-2019, 06:59 AM
RE: Add new paint method ? - by Ofnuts - 02-05-2019, 07:32 AM
RE: Add new paint method ? - by Jack Parker - 02-05-2019, 07:04 PM
RE: Add new paint method ? - by Ofnuts - 02-05-2019, 08:27 PM
RE: Add new paint method ? - by Jack Parker - 02-05-2019, 10:56 PM
RE: Add new paint method ? - by Jack Parker - 02-06-2019, 03:45 AM
RE: Add new paint method ? - by Ofnuts - 02-06-2019, 05:30 AM
RE: Add new paint method ? - by Jack Parker - 02-06-2019, 11:28 PM
RE: Add new paint method ? - by Ofnuts - 02-07-2019, 06:57 AM
RE: Add new paint method ? - by Jack Parker - 02-16-2019, 08:03 PM
RE: Add new paint method ? - by Ofnuts - 02-16-2019, 09:12 PM
RE: Add new paint method ? - by Jack Parker - 02-20-2019, 12:29 AM
RE: Add new paint method ? - by Ofnuts - 02-20-2019, 08:38 AM

Forum Jump: