Grayscale
Represents a grayscale color.
public class Grayscale : DeviceColor
Public Class Grayscale
Inherits DeviceColor
Inheritance: ObjectColorDeviceColorGrayscale
Licensing Info
This class is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
Remarks
See the Colors topic for more on grayscale colors.
Constructors
| Grayscale(Byte) | Initializes a new instance of the Grayscale class. |
| Grayscale(Single) | Initializes a new instance of the Grayscale class. |
Properties
| Black | Gets the color black. |
| ColorSpace | Gets the color space for the color. |
| Components | Gets the number of components for the device color. |
| DarkGray | Gets the color dark gray. |
| DimGray | Gets the color dim gray. |
| Gray | Gets the color gray. |
| GrayLevel | Gets the gray value. |
| LightGrey | Gets the color light grey. |
| Silver | Gets the color silver. |
| White | Gets the color white. |
Methods
| DrawFill(OperatorWriter) | Draws the color data to the given PageWriter object. |
| DrawFill(PageWriter) | Draws the color data to the given PageWriter object. (Inherited from DeviceColor) |
| DrawStroke(OperatorWriter) | Draws the color data to the given PageWriter object. |
| DrawStroke(PageWriter) | Draws the color data to the given PageWriter object. (Inherited from DeviceColor) |
| Equals(Object) | Tests equality of colors. |
| GetHashCode() | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| ToString() | Returns a String that represents the current Object . (Inherited from Object) |
| ToStringBuilder(StringBuilder) | Appends the color information to the given StringBuilder object. |