Hi, I have two Writablebitmap, one from jpg and the other from png, and use this method to mix colors in a loop:
private static Color Mix(Color from, Color to, float percent)
{
float amountFrom = 1.0f - percent;
return Color.FromArgb(
(byte)(from.A * amountFrom + to.A * percent),
(byte)(from.R * amountFrom + to.R * percent),
(byte)(from.G * amountFrom + to.G * percent),
(byte)(from.B * amountFrom + to.B * percent));
}
My problem is in the alpha channel, my result of the watermark effect is bad (quality)!

This is the original png.

This is the original jpg.

Any help?
source
share