3#ifndef PDFSDK_CXX_PDF_COLOR_H_INCLUDED_
4#define PDFSDK_CXX_PDF_COLOR_H_INCLUDED_
10#include "forward_declarations.h"
11#include "wrapper_base.h"
30class Color :
public detail::RefCountedHandle<PDEColor> {
115 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(
Color, PDEColor)
120#include "color_impl.inl"
Represents a color in a PDF document.
Definition color.h:30
float GetComponent(size_t index) const
Gets the color component at the specified index.
static Color CreateGray(float gray)
Creates a grayscale color with the specified gray value.
PDColorValue ToARGB(float opacity, PDERenderingIntent intent) const
Converts a color to its ARGB color value, by providing the color's opacity and rendering intent.
size_t GetNumComponents() const
Gets the number of components in a color.
static Color CreateFromValue(PDColorValue value)
Creates a color from the RGB color value.
static Color Create(const ColorSpace &colorSpace, const std::vector< float > &components, const Pattern &pattern)
Creates a color by specifying a color space and the color components.
PDColorValue ToRGB(PDERenderingIntent intent) const
Converts a color to its RGB color value, by providing the color's rendering intent.
Pattern GetPattern() const
Gets the type of pattern associated with a color. Either tilling or shading.
static Color CreateRGB(float red, float green, float blue)
Creates an RGB color by specifying the individual red, green, and blue values.
ColorSpace GetColorSpace() const
Gets the color space of the color.
Represents a color space in a PDF document.
Definition color_space.h:40
Represents a shading or tiling pattern in a PDF document.
Definition pattern.h:18
PDERenderingIntent
Specifies the way to reproduce colour on a target device.
Definition content.h:130