iText 8.0.5 API
|
Color space to specify shades of gray color. More...
Public Member Functions |
|
DeviceGray?? (float value) | |
Creates DeviceGray color by given grayscale. More... |
|
DeviceGray () | |
Creates DeviceGray color with grayscale value initialised as zero. More... |
|
Public Member Functions inherited from iText.Kernel.Colors.Color | |
virtual int | GetNumberOfComponents () |
Returns the number of color value components More... |
|
virtual PdfColorSpace | GetColorSpace () |
Returns the color space to which the color is related. More... |
|
virtual float[] | GetColorValue () |
Returns the color value of the color More... |
|
virtual void | SetColorValue (float[] value) |
Sets the color value of the color More... |
|
override int | GetHashCode () |
override bool | Equals (Object o) |
Indicates whether the color is equal to the given color. More... |
|
Static Public Attributes |
|
static readonly iText.Kernel.Colors.DeviceGray | WHITE = new iText.Kernel.Colors.DeviceGray(1f) |
Predefined white DeviceGray color. More... |
|
static readonly iText.Kernel.Colors.DeviceGray | GRAY = new iText.Kernel.Colors.DeviceGray(.5f) |
Predefined gray DeviceGray color. More... |
|
static readonly iText.Kernel.Colors.DeviceGray | BLACK = new iText.Kernel.Colors.DeviceGray() |
Predefined black DeviceGray color. More... |
|
Additional Inherited Members |
|
Package Functions inherited from iText.Kernel.Colors.Color | |
Color (PdfColorSpace colorSpace, float[] colorValue) | |
Creates a Color of certain color space and color value. More... |
|
Package Attributes inherited from iText.Kernel.Colors.Color | |
PdfColorSpace | colorSpace |
The color space of the color More... |
|
float[] | colorValue |
The color value of the color More... |
|
Color space to specify shades of gray color.
|
inline |
Creates DeviceGray color with grayscale value initialised as zero.
|
inline |
Creates DeviceGray color by given grayscale.
Creates DeviceGray color by given grayscale. The grayscale is considered to be in [0, 1] interval, if not, the grayscale will be considered as 1 (when grayscale's value is bigger than 1) or 0 (when grayscale's value is less than 0).
value | the grayscale value |
|
inlinestatic |
Returns DeviceGray color which is darker than given one
grayColor | the DeviceGray color to be made darker |
|
inlinestatic |
Returns DeviceGray color which is lighter than given one
grayColor | the DeviceGray color to be made lighter |
|
static |
Predefined black DeviceGray color.
|
static |
Predefined gray DeviceGray color.
|
static |
Predefined white DeviceGray color.