|
| 1 | +--- |
| 2 | +title: Color |
| 3 | +second_title: GroupDocs.Redaction for .NET API Reference |
| 4 | +description: Describes a fill or overlay color used in redaction options. |
| 5 | +type: docs |
| 6 | +weight: 310 |
| 7 | +url: /net/groupdocs.redaction.options.drawing/color/ |
| 8 | +--- |
| 9 | +## Color structure |
| 10 | + |
| 11 | +Describes a fill or overlay color used in redaction options. |
| 12 | + |
| 13 | +```csharp |
| 14 | +public struct Color : IEquatable<Color> |
| 15 | +``` |
| 16 | + |
| 17 | +## Properties |
| 18 | + |
| 19 | +| Name | Description | |
| 20 | +| --- | --- | |
| 21 | +| static [Black](../../groupdocs.redaction.options.drawing/color/black) { get; } | A preset opaque black, commonly used for blackout redactions. | |
| 22 | +| static [Blue](../../groupdocs.redaction.options.drawing/color/blue) { get; } | A preset opaque blue. | |
| 23 | +| static [Chocolate](../../groupdocs.redaction.options.drawing/color/chocolate) { get; } | A preset opaque brown tone used in sample redaction scenarios. | |
| 24 | +| static [Cyan](../../groupdocs.redaction.options.drawing/color/cyan) { get; } | A preset opaque cyan. | |
| 25 | +| static [Red](../../groupdocs.redaction.options.drawing/color/red) { get; } | A preset opaque red, often used for highlight-style redactions. | |
| 26 | +| static [Transparent](../../groupdocs.redaction.options.drawing/color/transparent) { get; } | A fully transparent color. | |
| 27 | +| static [Yellow](../../groupdocs.redaction.options.drawing/color/yellow) { get; } | A preset opaque yellow. | |
| 28 | +| [A](../../groupdocs.redaction.options.drawing/color/a) { get; } | Opacity of the color. 0 is fully transparent, 255 is fully opaque. | |
| 29 | +| [B](../../groupdocs.redaction.options.drawing/color/b) { get; } | Blue channel intensity. | |
| 30 | +| [G](../../groupdocs.redaction.options.drawing/color/g) { get; } | Green channel intensity. | |
| 31 | +| [R](../../groupdocs.redaction.options.drawing/color/r) { get; } | Red channel intensity. | |
| 32 | + |
| 33 | +## Methods |
| 34 | + |
| 35 | +| Name | Description | |
| 36 | +| --- | --- | |
| 37 | +| static [FromArgb](../../groupdocs.redaction.options.drawing/color/fromargb#fromargb)(int) | Builds a color from a packed 32-bit value in ARGB order. | |
| 38 | +| static [FromArgb](../../groupdocs.redaction.options.drawing/color/fromargb#fromargb_1)(int, int, int, int) | Builds a color from separate channel values. | |
| 39 | +| [Equals](../../groupdocs.redaction.options.drawing/color/equals#equals)(Color) | Compares channel values with another redaction color. | |
| 40 | +| override [Equals](../../groupdocs.redaction.options.drawing/color/equals#equals_1)(object) | Compares this color with another object. | |
| 41 | +| override [GetHashCode](../../groupdocs.redaction.options.drawing/color/gethashcode)() | Returns a hash code based on the packed ARGB value. | |
| 42 | +| [ToArgb](../../groupdocs.redaction.options.drawing/color/toargb)() | Returns the color as a packed 32-bit ARGB value. | |
| 43 | +| override [ToString](../../groupdocs.redaction.options.drawing/color/tostring)() | Returns channel values in a readable form. | |
| 44 | + |
| 45 | +### See Also |
| 46 | + |
| 47 | +* namespace [GroupDocs.Redaction.Options.Drawing](../../groupdocs.redaction.options.drawing) |
| 48 | +* assembly [GroupDocs.Redaction](../../) |
| 49 | + |
| 50 | +<!-- DO NOT EDIT: generated by xmldocmd for GroupDocs.Redaction.dll --> |
0 commit comments