|
@@ -284,11 +284,6 @@ namespace ComPDFKit.Tool.UndoManger
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- if (a == 0 && b == 0 && g == 0 && r == 0)
|
|
|
|
- {
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (a == 0 && opacity > 0)
|
|
if (a == 0 && opacity > 0)
|
|
{
|
|
{
|
|
imageData[i * stride + j * 4] = 255;
|
|
imageData[i * stride + j * 4] = 255;
|
|
@@ -360,8 +355,12 @@ namespace ComPDFKit.Tool.UndoManger
|
|
|
|
|
|
if (a == 0 && b == 0 && g == 0 && r == 0)
|
|
if (a == 0 && b == 0 && g == 0 && r == 0)
|
|
{
|
|
{
|
|
|
|
+ imageData[i * stride + j * 4] = 255;
|
|
|
|
+ imageData[i * stride + j * 4 + 1] = 255;
|
|
|
|
+ imageData[i * stride + j * 4 + 2] = 255;
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+
|
|
imageData[i * stride + j * 4 + 3] = (byte)(opacity * 255);
|
|
imageData[i * stride + j * 4 + 3] = (byte)(opacity * 255);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -417,15 +416,7 @@ namespace ComPDFKit.Tool.UndoManger
|
|
{
|
|
{
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
-
|
|
|
|
- if (a == 0 && b == 0 && g == 0 && r == 0)
|
|
|
|
- {
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
- if (a == 0 && b == 0 && g == 0 && r == 0)
|
|
|
|
- {
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if (a == 0 && annotOpacity > 0)
|
|
if (a == 0 && annotOpacity > 0)
|
|
{
|
|
{
|
|
imageData[i * stride + j * 4] = 255;
|
|
imageData[i * stride + j * 4] = 255;
|