• Content count

  • Joined

  • Last visited

  • Days Won


MJW last won the day on May 7

MJW had the most liked content!

Community Reputation



About MJW

  • Rank
    2016 Plugin of the Year

Profile Information

  • Gender
  1. For that type of effect, I think you should try BoltBait's Paste Alpha. You can create a greyscale mask of the area you want to be transparent, then paste it in as alpha. The advantage is that Paint.NET has more tools and effects for creating greyscale masks than for altering transparency. For example, you can paint the initial mask with the Paintbrush, then soften the edge with blurs. If you set a layer above the image layer to white, and set the layer's Blend Mode to Multiply, you should be able to get a feeling for its effect on the transparency as you darken the areas that will be transparent. Or to better match the example you gave, set the initial mask to black, and use the Additive Blend mode. The transparent regions would be lightened. (Use the Paste Alpha's Invert Calculation option in that case.)
  2. Congratulations to @welshblue , @sunmaggot and all the other cyber Johnny Appleseeds. Welshblues' entry is especially elegant. Looks like a lot of different approaches were used in this contest, which I like to see. Thanks to @toe_head2001 for hosting the competition!
  3. Malfunction - "Paste Alpha"

    @BoltBait, here is a suggestion for how the Paste Alpha Code might work.
  4. saveas / export

    I prefer using Ctrl+Shift+C to copy the merged image, followed by Ctrl+Alt+V to paste the merged image into a single-layer image that can be saved (in this case, in dds format). That way, the layered image is left associated with the original filename and format. Any updated versions can be saved into the flat image using Ctrl-V to paste, followed by saving.
  5. Malfunction - "Paste Alpha"

    You seem to have some personal definition of what a "true alpha mask" is. I have no idea what you mean by that phrase, and I doubt BoltBait does either. Why don't you tell us what you think a plugin that provides a "true alpha mask" should do? How would it be different from a plugin that sets alpha to the minimum of the image and clipboard alphas? What does that mean? How can they not be some specific color? A pixel is transparent if and only if its alpha is zero, and any pixel whose alpha is zero has to have something in the RGB values, which will become its color if the alpha is changed. If you're saying you don't want transparent areas to be made nontransparent, fine, but that's what using the minimum or product of the alphas would do. (You can't just leave the transparent image pixels unchanged and replace all the rest with the clipboard alphas, since that will produce ugly artifacts when almost-transparent image pixels get replaced by opaque clipboard alphas.)
  6. Malfunction - "Paste Alpha"

    I'll try to come up with the exact situation, but my guess is that the only things that really matter are that opaque image pixels are forced to have the clipboard alpha, and that all pixels are made transparent if they're transparent in either the image or the clipboard. In which case either multiply or use-least would suffice.
  7. Malfunction - "Paste Alpha"

    I'll be happy to provide the code. I want to see if I can do it in integer arithmetic, so it may take a day or two to refresh my memory on the ins and outs of doing that and getting the best result. There is another idea that's weird but more flexible: allow the option of applying blend modes to alpha. The alpha values could be copied into, say, the R values of pixels (whose alphas are 255), the op applied, and the result used as alpha. The Clipboard would be the upper-layer pixel, so Normal would result in substitution. Perhaps such an option isn't useful enough to justify the confusion it might cause. On the other hand, it would allow both Multiply and "least opaque" (Darken). That's actually a way Multiply could be done. Just copy the alphas into a pixel color byte, apply the Multiply op, and use the result. I don't know if that's easier than just using integer arithmetic on the alphas, which shouldn't be too difficult. EDIT: After thinking about it, I must admit I'm not sure what the best way to combine alphas is. Perhaps it is "Use least opaque alpha." I know there have been quite a few times when I wished I had an easy way of combining alphas, but off the top of my head, I can't think of exactly what I was doing, and what would have worked best.
  8. Malfunction - "Paste Alpha"

    @fuerudo, I think I know your problem, which is a misunderstanding of what Paste Alpha does. Paste Alpha replaces the alphas in the image with the alphas taken from the clipboard; it doesn't combine the alphas. It doesn't care that an image alpha was originally zero. If the clipboard alpha is 255 (opaque), that's what the new alpha will be. When you pasted the alpha from the green-bar image into the red-bar layer, all the pixels along the green bar became nontransparent. The ones along the green-bar diagonal that were originally transparent showed up as white, because transparent pixels are typically white with an alpha of zero. I wish there were the option to combine the alphas (which would be done by multiplying, then rescaling to the proper range).
  9. Malfunction - "Paste Alpha"

    The user can choose between using the greyscale value of the clipboard pixel or its alpha value. The desaturateOp call converts the pixel to greyscale for the greyscale choice.
  10. SOTW# 171 - Snail - WINNER.

    Voting period over already? That week sure went by quickly. Sorry, I forgot to vote this time. I couldn't decide which entry to vote for, so I decided to decide later. My pace was obviously too snail-like. Congratulations to MadJik's and Pixey for their clever, amusing, and well-executed entries.
  11. How to curve a font?

    You might try Paste Warp+.
  12. Forum Layout/Color

    It's there, like the shadow of a ghost, but I don't think it was that light until yesterday or today. Maybe I'll try the Goodnight Nurse theme.
  13. Forum Layout/Color

    What happened to the line that separates comments in the standard theme? They now all blend into one long comment. I'm pretty sure it just started happening. I think I would have noticed.
  14. Comment moved to the proper thread.
  15. Malfunction - "Paste Alpha"

    If Paste Alpha has a problem, you should need only two images to demonstrate it: the alpha image, and the image it will be pasted into. Either Paste Alpha leaves the color alone while changing the alpha to appropriate value, or it doesn't. The effect of blending the resultant layer with other layers is a Paint.NET matter, not a Paste Alpha matter. You can even specify coordinates of the alpha-pasted pixel that's wrong. It can be easily checked with the Color Picker. Either the color will be changed from before the Paste Alpha, or the alpha won't be changed to what it should be.