mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Inverting colors feature
This commit is contained in:
@ -1106,6 +1106,16 @@ qint64 PDFMesh::getMemoryConsumptionEstimate() const
|
||||
return memoryConsumption;
|
||||
}
|
||||
|
||||
void PDFMesh::invertColors()
|
||||
{
|
||||
for (Triangle& triangle : m_triangles)
|
||||
{
|
||||
triangle.color = 0x00FFFFFF - triangle.color;
|
||||
}
|
||||
|
||||
m_backgroundColor = invertColor(m_backgroundColor);
|
||||
}
|
||||
|
||||
void PDFMeshQualitySettings::initResolution()
|
||||
{
|
||||
Q_ASSERT(deviceSpaceMeshingArea.isValid());
|
||||
|
Reference in New Issue
Block a user