fuerudo
-
Posts
7 -
Joined
-
Last visited
Posts posted by fuerudo
-
-
8 hours ago, BoltBait said:
@MJW is exactly right. This effect is called "Paste Alpha" not "Combine Alpha". The previous alpha value of the target image is ignored and simply replaced with the alpha value from the clipboard image.
Give me some code and I'll make it an option. The simplest way might be to have an option called "Use least opaque alpha" which is a simple comparison.
Thats it!
But,
I expect from tools like "Paste Alpha" a true, pure "paste alpha" function, not combining of any others!
But "PasteAlpha" does more, combining (or use) other pixel-values for alpha!
I'm sorry, in my mind thats the mistake: Transparent areas of images are not "white" or "black" (or near that)!
In this Version, "pastealpha.dll" isn't usable as "true alpha mask"!
Best regards,
Udo Fuerhoff
-
10 hours ago, MJW said:
@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).
Thanks, but no, that isn't! My examples only for simple demonstration! I think I now what "paste alpha" should be do!
-
Quote
BoltBait
...
NewPixel = desaturateOp.Apply(NewPixel); // turn the clipboard pixel black and white
...
if (Amount1 == 0) // we will be using the clipboard pixel's black and white value for the alpha
...
Why do you do that?
I don't know what the functions/methods do, but it's equal!
I think:
"PasteAlpha" should not use other RGB-Values!?
-
-
Previous posted at Main Troubleshooting Forum, because it's more than a Plugin-Issue ...
Sometimes, "Paste Alpha (... from Clipboard)" creates wrong color/alpha-values!
True to the motto "A picture says more than thousands words" I've created a Image
as PDN-File.
Attached here as ZIP-File (16.5 kB, 200px × 200px).
Best regards,
Udo Fuerhoff
BoltBatsPack46 installed (same DLL included in ~43)
PasteAlpha.dll -> 4.3.5815.35469
Signature: 00004550
Time/Date stamp (UTC): 56610B9A,2015-12-04 03:42:18
Application paint.net v4.0.17 (Final 4.17.6411.1908)
Build Date Freitag, 21. Juli 2017
OS Windows 10 x64 (10.0.10586.0).NET Runtime 4.0.30319.42000ImageDocPasteAlphaMalFunction 20170807 #02 200x200px_pdn.zip
-
Sometimes, "Paste Alpha (... from Clipboard)" creates wrong color/alpha-values!
True to the motto "A picture says more than thousands words" I've created a Image
as PDN-File.
Attached here as ZIP-File (16.5 kB, 200px × 200px).
Best regards,
Udo Fuerhoff
Application paint.net v4.0.17 (Final 4.17.6411.1908)
Build Date Freitag, 21. Juli 2017
OS Windows 10 x64 (10.0.10586.0).NET Runtime 4.0.30319.42000ImageDocPasteAlphaMalFunction 20170807 #02 200x200px_pdn.zip
Malfunction - "Paste Alpha"
in Plugin Developer's Central
Posted
... and the code-snippet let suspect the same ...
Okay,
I accept that "pastealpha.dll" isn't usable as true alpha mask, but, please take a note in the description!