UtilImageGetGrayScalePixelPercentOfImage(FileInfo) 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(
	FileInfo file
)

Parameters

file  FileInfo
The image file.

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