12.1: feathered selections, Select Subject, Soft Light, the fixed-width font menu (Compositor 1.1.1–1.1.4)

This commit is contained in:
雷电芽衣 committed 2026-09-26 17:15:26 -04:00
1 parent 3e52fd90ee
commit ee34c338d4
42 files changed
+1087 -94

No files matched your search

+7
View File
@@ -63,6 +63,7 @@ private slots:
void everyPatternFillsBackToItself_data();
void everyPatternFillsBackToItself();
void darkMeansBelowHalfGray();
void whiteMeansAtLeastHalfGray();
void opaqueMeansAtLeastHalfAlpha();
void nothingToTraceIsNil();
void otherPixelFormatsAreConverted();
@@ -129,6 +130,12 @@ void MaskTracingTests::darkMeansBelowHalfGray()
QVERIFY(!MaskTracing::darkPixels(mask({"#.", ".."}, 128, 255)).has_value());
}
void MaskTracingTests::whiteMeansAtLeastHalfGray()
{
QCOMPARE(filled(MaskTracing::whitePixels(mask({"#.", ".."}, 128, 127)).value(), 2, 2), QStringList({"#.", ".."}));
QVERIFY(!MaskTracing::whitePixels(mask({"#.", ".."}, 127, 0)).has_value());
}
void MaskTracingTests::opaqueMeansAtLeastHalfAlpha()
{
QCOMPARE(filled(MaskTracing::opaquePixels(layer({"#.", ".."}, 128, 127)).value(), 2, 2), QStringList({"#.", ".."}));