Debug rendering for PostScript printer backend.

Change-Id: I4581026627fe509895d471f5c28089aaaee85f58
This commit is contained in:
Thorsten Behrens
2013-05-04 02:26:49 +02:00
parent a89aa68483
commit d08280cd68

View File

@@ -641,7 +641,6 @@ static bool ImplIsActionHandlingTransparency( const MetaAction& rAct )
}
}
// remove comment to enable highlighting of generated output
bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, GDIMetaFile& rOutMtf,
long nMaxBmpDPIX, long nMaxBmpDPIY,
bool bReduceTransparency, bool bTransparencyAutoMode,
@@ -1341,6 +1340,20 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
rOutMtf.SetPrefMapMode( rInMtf.GetPrefMapMode() );
rOutMtf.SetPrefSize( rInMtf.GetPrefSize() );
#if OSL_DEBUG_LEVEL > 1
// iterate over all aCCList members and generate rectangles for the bounding boxes
rOutMtf.AddAction( new MetaFillColorAction( COL_WHITE, false ) );
for( aCurr = aCCList.begin(); aCurr != aLast; ++aCurr )
{
if( aCurr->bIsSpecial )
rOutMtf.AddAction( new MetaLineColorAction( COL_RED, true) );
else
rOutMtf.AddAction( new MetaLineColorAction( COL_BLUE, true) );
rOutMtf.AddAction( new MetaRectAction( aMapModeVDev.PixelToLogic( aCurr->aBounds ) ) );
}
#endif
}
return bTransparent;
}