Skip to content


Add render checker color tolerance to sip
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Mar 24, 2014
1 parent 3797ffa commit 81ba9ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/core/qgsrenderchecker.sip
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ class QgsRenderChecker
void setRenderedImage( QString theImageFileName );
void setMapRenderer( QgsMapRenderer * thepMapRenderer ) /Deprecated/;
void setMapSettings( const QgsMapSettings& mapSettings );

/** Set tolerance for color components used by runTest() and compareImages().
* Default value is 0.
* @param theColorTolerance is maximum difference for each color component
* including alpha to be considered correct.
* @note added in 2.1
void setColorTolerance( unsigned int theColorTolerance );
* Test using renderer to generate the image to be compared.
* @param theTestName - to be used as the basis for writing a file to
Expand Down

0 comments on commit 81ba9ed

Please sign in to comment.