UtilImageGetGrayScalePixelPercentOfImage(Image, Int32) Method

Analyzes each pixel of the spcified image, counts all the pixels that are within the grayscale RGB range, then calculates a percentage of the total grayscale presence in the image.

Definition

Namespace: DevCase.Core.Media.Graphics
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static double GetGrayScalePixelPercentOfImage(
	Image img,
	int dimensionIndex
)

Parameters

img  Image
The source image.
dimensionIndex  Int32
The index of the image dimension to analyze.

Return Value

Double
The resulting percentage of grayscale pixels in the source image.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also