Table of Contents

Namespace UglyToad.PdfPig.Graphics.Colors

Classes

AxialShading

Axial shadings (type 2) define a colour blend along a line between two points, optionally extended beyond the boundary points by continuing the boundary colours.

CMYKColor

A color with cyan, magenta, yellow and black (K) components.

CalGrayColorSpaceDetails

CIE (Commission Internationale de l'Éclairage) colorspace. Specifies color related to human visual perception with the aim of producing consistent color on different output devices. CalGray - A CIE A color space with a single transformation. A represents the gray component of a calibrated gray space. The component must be in the range 0.0 to 1.0.

CalRGBColorSpaceDetails

CIE (Commission Internationale de l'Éclairage) colorspace. Specifies color related to human visual perception with the aim of producing consistent color on different output devices. CalRGB - A CIE ABC color space with a single transformation. A, B and C represent red, green and blue color values in the range 0.0 to 1.0.

ColorSpaceDetails

Contains more document-specific information about the ColorSpace.

ColorSpaceExtensions

Provides utility extension methods for dealing with ColorSpaces.

CoonsPatchMeshesShading

Coons patch meshes (type 6) construct a shading from one or more colour patches, each bounded by four cubic Bézier curves.

DeviceCmykColorSpaceDetails

Color values are defined by four components cyan, magenta, yellow and black.

DeviceGrayColorSpaceDetails

A grayscale value is represented by a single number in the range 0.0 to 1.0, where 0.0 corresponds to black, 1.0 to white, and intermediate values to different gray levels.

DeviceNColorSpaceDetails

DeviceN colour spaces may contain an arbitrary number of colour components. They provide greater flexibility than is possible with standard device colour spaces such as DeviceCMYK or with individual Separation colour spaces.

DeviceRgbColorSpaceDetails

Color values are defined by three components representing the intensities of the additive primary colorants red, green and blue. Each component is specified by a number in the range 0.0 to 1.0, where 0.0 denotes the complete absence of a primary component and 1.0 denotes maximum intensity.

FreeFormGouraudShading

Free-form Gouraud-shaded triangle meshes (type 4) define a common construct used by many three-dimensional applications to represent complex coloured and shaded shapes. Vertices are specified in free-form geometry.

FunctionBasedShading

Function-based shadings (type 1) define the colour of every point in the domain using a mathematical function (not necessarily smooth or continuous).

GrayColor

A grayscale color with a single gray component.

ICCBasedColorSpaceDetails

The ICCBased color space is one of the CIE-based color spaces supported in PDFs. These color spaces enable a page description to specify color values in a way that is related to human visual perception. The goal is for the same color specification to produce consistent results on different output devices, within the limitations of each device.

Currently support for this color space is limited in PdfPig. Calculations will only be based on the color space of AlternateColorSpace.

IndexedColorSpaceDetails

An Indexed color space allows a PDF content stream to use small integers as indices into a color map or color table of arbitrary colors in some other space. A PDF consumer treats each sample value as an index into the color table and uses the color value it finds there.

LabColorSpaceDetails

CIE (Commission Internationale de l'Éclairage) colorspace. Specifies color related to human visual perception with the aim of producing consistent color on different output devices. CalRGB - A CIE ABC color space with a single transformation. A, B and C represent red, green and blue color values in the range 0.0 to 1.0.

LatticeFormGouraudShading

Lattice-form Gouraud-shaded triangle meshes (type 5) are based on the same geometrical construct as type 4 but with vertices specified as a pseudorectangular lattice.

PatternColor

A pattern color.

Base class for TilingPatternColor and ShadingPatternColor.

PatternColorSpaceDetails

Pattern color space.

RGBColor

A color with red, green and blue components.

RadialShading

Radial shadings (type 3) define a blend between two circles, optionally extended beyond the boundary circles by continuing the boundary colours. This type of shading is commonly used to represent three-dimensional spheres and cones.

SeparationColorSpaceDetails

A Separation color space provides a means for specifying the use of additional colorants or for isolating the control of individual color components of a device color space for a subtractive device. When such a space is the current color space, the current color is a single-component value, called a tint, that controls the application of the given colorant or color components only.

Shading

A shading specifies details of a particular gradient fill, including the type of shading to be used, the geometry of the area to be shaded, and the geometry of the gradient fill. Various shading types are available, depending on the value of the dictionary's ShadingType entry.

ShadingPatternColor

Shading patterns provide a smooth transition between colours across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the colour transition.

TensorProductPatchMeshesShading

Tensor-product patch meshes (type 7) are similar to type 6 but with additional control points in each patch, affording greater control over colour mapping.

TilingPatternColor

A tiling pattern consists of a small graphical figure called a pattern cell. Painting with the pattern replicates the cell at fixed horizontal and vertical intervals to fill an area. The effect is as if the figure were painted on the surface of a clear glass tile, identical copies of which were then laid down in an array covering the area and trimmed to its boundaries.

UnsupportedColorSpaceDetails

A ColorSpace which the PdfPig library does not currently support. Please raise a PR if you need support for this ColorSpace.

Structs

DeviceNColorSpaceDetails.DeviceNColorSpaceAttributes

DeviceN Color Space Attributes.

Interfaces

IColor

A color used for text or paths in a PDF.

Enums

ColorSpace

Color values in a PDF are interpreted according to the current color space. Color spaces enable a PDF to specify abstract colors in a device independent way.

ColorSpaceFamily

ColorSpaces can be classified into colorspace families. ColorSpaces within the same family share general characteristics.

PatternPaintType

TODO

PatternTilingType

TODO

PatternType

TODO

ShadingType

Shading types.