The grid does not have to be visible to be active All in the View menu.Įdit: Just seen the reason - Making a game, Gimp / PSP / Krita - all probably overkill. This can be done on an image-per-image basis but you might want to set up globally in Edit -> Preferences. (4) When you make the bush, make it symmetrical (preferably both ways ) Not easy to guarantee, but some steps to take. (3) To avoid that ensure the brush coincides with a pixel boundary. (2) Using the brush tool if the brush center is not on a pixel (sub-pixel) you get anti-aliasing. With that brush active, (1) is using the pencil - this will snap to a pixel. Never going to work as a pencil as previous posts. You might make a brush like this, a mixture of 'solid' and 50% opacity pixels. The best way to learn Gimp capabilities is experiment, so set up a small image and make a 1-pixel grid. Even then Gimp is a raster (bitmap) editor so you are constrained to pixel sizes. Is there anyone here who knows enough about the GIMP source code to know how easy this change might be and where to direct me to look if the change were feasible for a It would help if you gave an example of the brush you are using. Such a change sounds incredibly simple - the worst problem would be adding a UI option to turn on or off the transparency behavior. Its starting to look like I might have to modify GIMP to get what I need.Īll that would be necessary is to modify the Pencil tool to use transparency when blitting the brush onto the layer. Unfortunately, the tool settings are absolutely terrible compared to GIMP. You get per-pixel stamps with transparency and no anti-aliasing. The PSP Picture Tube does precisely what I want. In the meantime, while waiting for a final answer to my question, I tested Paint Shop Pro picture tube. There's no way to get a stamped effect with transparency and without antialiasing? Presently in GIMP, the two are mutually exclusive.Ī) An RGB brush with anti-aliased edges and transparencyī) An RGB pencil without anti-aliased edges and without transparency. Is there a configuration setting I'm missing? I need the exact pencil mapping, but it appears to ignore transparency in the brush image. On the other hand, the pencil tool acts like an exact pixel-per-pixel map that "stamps" the exact brush shape without any distortion or alteration. Sometimes, the distortion is quite significant. This means if you created a brush image that needs to be stamped so that exact per-pixel detail matches the brush as it was originally created, you can't. The Brush tool appears to do some kind of subpixel sampling in an attempt to make a brush appear to be centered exactly where you click. However, it appears that transparency is ignored when I use the brush with the Pencil tool. Because they are so small (sub pixel), it's essential that they have transparency in order to blend properly when I paint them. If you want to go the Gimp route, you can steal the core code in my plugin above and make it work in a batch that processes a whole directory by following this example.I've created a custom brush of some grass blades. For an IM equivalent to Color-to-Alpha, see this. For some code that does this see for instance my ofn-erase-background script.īut if you need to process files in batch it is usually easier to use ImageMagick from a shell script. A more proper way is to select the background, grow the selection by one or two pixels, and then use Color-to-Alpha. Now, removing the background by Select/Delete is not very correct, you get a remaining halo of the background color. To debug your Python scripts under Windows, see this. The gimp_image_get_selection() step is not necessary. Likewise, gimp_layer_add_alpha() takes a layer. Since you don't do anything with what you remove, you can use gimp_edit_clear() instead. The parameter to gimp_edit_cut() should be your layer (the selection is implicit, but if you have several layers, Gimp needs to know which.). Pdb.gimp_image_select_contiguous_color(timg, 0, tdrawable, 1, 1)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |