Skip to main content

ColorMatrixFlag

Namespace: System.Drawing.Imaging

Assembly: System.Drawing.Managed (4.0.0.0)

Specifies available options for color-adjusting. GDI+ can adjust color data only, grayscale data only, or both.

public enum ColorMatrixFlag : Enum

Fields

NameDescription
AltGraysOnly gray shades are adjusted.
DefaultAll color values, including gray shades, are adjusted by the same color-adjustment matrix.
SkipGraysAll colors are adjusted, but gray shades are not adjusted. A gray shade is any color that has the same value for its red, green, and blue components.

Used By

NameDescription
ImageAttributes.SetColorMatrixSets the color-adjustment matrix for the default category.
ImageAttributes.SetColorMatricesSets the color-adjustment matrix and the grayscale-adjustment matrix for the default category.