NevronOpenVision
Nevron.Nov.Graphics Namespace / NRaster Class / PixelsEqual Method
The first raster to compare.
The second raster to compare.
The maximum allowed difference between the color components of the same pixels of the two rasters.
The maximum allowed number of different pixels.
In This Topic
    PixelsEqual Method
    In This Topic
    Compares the given rasters pixel by pixel and returns whether they are considered equal obeying the specified tolerance and maximum number of pixels that may be different.
    Syntax
    public static System.bool PixelsEqual( 
       NRaster raster1,
       NRaster raster2,
       System.byte tolerance,
       System.int allowedDifferentPixels
    )

    Parameters

    raster1
    The first raster to compare.
    raster2
    The second raster to compare.
    tolerance
    The maximum allowed difference between the color components of the same pixels of the two rasters.
    allowedDifferentPixels
    The maximum allowed number of different pixels.

    Return Value

    A boolean value indicating whether the rasters are considered equal.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also