Image IsColor - TechNet Articles - United States (English) - TechNet Wiki

public static bool IsColor(Bitmap bitmap)
        {
            bool isColor = false;

            try
            {
                PropertyItem propertie = bitmap.GetPropertyItem(262);
                if (propertie.Value[0] == 2 || propertie.Value[0] == 3)
                    isColor = true;
            }
    &n="post-name">Image IsColor
public static bool IsColor(Bitmap bitmap)
        {
            bool isColor = false;

            try
            {
                PropertyItem propertie = bitmap.GetPropertyItem(262);
                if (propertie.Value[0] == 2 || propertie.Value[0] == 3)
                    isColorbsp;       catch
            {
            }

            return isColor;
        }