PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
color_space.h
Go to the documentation of this file.
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CXX_PDF_COLOR_SPACE_H_INCLUDED_
4#define PDFSDK_CXX_PDF_COLOR_SPACE_H_INCLUDED_
5
11#include <pdfsdk/core/content.h>
12
13#include "forward_declarations.h"
14#include "wrapper_base.h"
15
16namespace PDF {
17
40class ColorSpace : public detail::RefCountedHandle<PDEColorSpace> {
41public:
52
63
75
85
94 static ColorSpace CreateFromPdfObject(const Object& object);
95
104
116
132 size_t GetNumComponents() const;
133
146 PDENumRange GetComponentRange(size_t index) const;
147
152 bool HasVisibleOutput() const;
153
154 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(ColorSpace, PDEColorSpace)
155};
156
157} // namespace PDF
158
159#include "color_space_impl.inl"
160
161#endif // PDFSDK_CXX_PDF_COLOR_SPACE_H_INCLUDED_
Represents a color space in a PDF document.
Definition color_space.h:40
static ColorSpace GetPattern()
Gets the Pattern color space.
PDEColorSpaceFamily GetFamily() const
Gets the color space family.
static ColorSpace GetDeviceGray()
Gets the DeviceGray color space.
bool HasVisibleOutput() const
Checks if the color space produces visible output.
static ColorSpace GetDeviceRGB()
Gets the DeviceRGB color space.
PDENumRange GetComponentRange(size_t index) const
Gets the range of values for a specific component in the color space.
static ColorSpace CreateFromPdfObject(const Object &object)
Creates a color space from the specified PDF object.
Object GetPdfObject() const
Get the PDF object associated with this color space.
size_t GetNumComponents() const
Gets the number of components that make up a color space.
static ColorSpace GetDeviceCMYK()
Gets the DeviceCMYK color space.
Represents a PDF object.
Definition object.h:20
Content API.
PDEColorSpaceFamily
Specifies a colour space family.
Definition content.h:390
Definition content.h:30