Textured Masks Problem aka How Do I

I have a pair of textures in png format. Both have alpha/transparency. One has a faint pattern that currently fills vertically the graphic but the majority is alpha. This texture is intended to be used in a layer to a third texture. This 3rd texture is irrelevant to the current problem. The first texture works but can be improved by restricting the pattern to a certain area the file. The second texture has a white disk (colour may be irrelevant) surrounded by alpha.

So the question is can I restrict the pattern on the first texture to exactly the size of the disk on the second rendering whatever is outside in alpha. If so, how do I do that in gimp or paint.net (I don’t think paint.net supports this). The two textures in question are in this 7z archive -

masks.7z (59.9 KB)

Done that way due to the amount of transparency.

Thanks.

TR

Anybody?

TR

Solved it. Aside from paint.net and the gimp I have copies of other graphics tools. One of which is Photoshop Elements 2021 (yes I actually bought it). This has a cookie cutter tool. So here is how I went about it.

  1. Reduce the canvas size in paint.net so that it was 1 pixel larger all around, than the desired size and saved with new name.
  2. Used PSE’s cookie cutter tool to get the desired shape of the pattern in the correct place so that the pattern was surrounded by at least 1 pixel width of pure alpha.
  3. Back into paint.net and increase the canvas size to the image’s original size. This produces a white surround. Used the magic wand to select this white surround. Due to the aforementioned 1 pixel of alpha, the selected area did not “bleed” into the rest of the image.
  4. Voila, done.

TR

3 Likes