[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eColorInfo\u003c/code\u003e class in the Google Cloud Vision v1 API provides detailed information about a color within an image, including its RGB components, pixel fraction, and image-specific score.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eColorInfo\u003c/code\u003e is 3.7.0, and multiple earlier versions are also available for reference, spanning back to version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eColorInfo\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling various functionalities.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eColorInfo\u003c/code\u003e has three key properties: \u003ccode\u003eColor\u003c/code\u003e which represents the RGB components, \u003ccode\u003ePixelFraction\u003c/code\u003e denoting the proportion of pixels the color covers in the image, and \u003ccode\u003eScore\u003c/code\u003e which signifies the image-specific score for the color, each with range values.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Vision v1 API - Class ColorInfo (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ColorInfo)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.6.0/Google.Cloud.Vision.V1.ColorInfo)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.5.0/Google.Cloud.Vision.V1.ColorInfo)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.4.0/Google.Cloud.Vision.V1.ColorInfo)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.3.0/Google.Cloud.Vision.V1.ColorInfo)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.2.0/Google.Cloud.Vision.V1.ColorInfo)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.1.0/Google.Cloud.Vision.V1.ColorInfo)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.0.0/Google.Cloud.Vision.V1.ColorInfo)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.5.0/Google.Cloud.Vision.V1.ColorInfo)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.4.0/Google.Cloud.Vision.V1.ColorInfo)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.3.0/Google.Cloud.Vision.V1.ColorInfo) \n\n public sealed class ColorInfo : IMessage\u003cColorInfo\u003e, IEquatable\u003cColorInfo\u003e, IDeepCloneable\u003cColorInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Vision v1 API class ColorInfo.\n\nColor information consists of RGB channels, score, and the fraction of\nthe image that the color occupies in the image. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ColorInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ColorInfo](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ColorInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ColorInfo](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ColorInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ColorInfo](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ColorInfo), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Vision.V1](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Vision.V1.dll\n\nConstructors\n------------\n\n### ColorInfo()\n\n public ColorInfo()\n\n### ColorInfo(ColorInfo)\n\n public ColorInfo(ColorInfo other)\n\nProperties\n----------\n\n### Color\n\n public Color Color { get; set; }\n\nRGB components of the color.\n\n### PixelFraction\n\n public float PixelFraction { get; set; }\n\nThe fraction of pixels the color occupies in the image.\nValue in range \\[0, 1\\].\n\n### Score\n\n public float Score { get; set; }\n\nImage-specific score for this color. Value in range \\[0, 1\\]."]]