UtilImageGetPixelColorPercentOfImage(FileInfo, Color) Method

Analyzes each pixel of the spcified image, counts all the pixels that are of same color as the color specified, 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 GetPixelColorPercentOfImage(
	FileInfo file,
	Color color
)

Parameters

file  FileInfo
The image file.
color  Color
The color.

Return Value

Double
The resulting percentage of pixels in the source image that are of same color as the color specified.

Example

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

See Also