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
16
namespace
PDF {
17
40
class
ColorSpace
:
public
detail::RefCountedHandle<PDEColorSpace> {
41
public
:
51
static
ColorSpace
GetDeviceGray
();
52
62
static
ColorSpace
GetDeviceRGB
();
63
74
static
ColorSpace
GetDeviceCMYK
();
75
84
static
ColorSpace
GetPattern
();
85
94
static
ColorSpace
CreateFromPdfObject
(
const
Object
&
object
);
95
103
Object
GetPdfObject
()
const
;
104
115
PDEColorSpaceFamily
GetFamily
()
const
;
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_
PDF::ColorSpace
Represents a color space in a PDF document.
Definition
color_space.h:40
PDF::ColorSpace::GetPattern
static ColorSpace GetPattern()
Gets the Pattern color space.
PDF::ColorSpace::GetFamily
PDEColorSpaceFamily GetFamily() const
Gets the color space family.
PDF::ColorSpace::GetDeviceGray
static ColorSpace GetDeviceGray()
Gets the DeviceGray color space.
PDF::ColorSpace::HasVisibleOutput
bool HasVisibleOutput() const
Checks if the color space produces visible output.
PDF::ColorSpace::GetDeviceRGB
static ColorSpace GetDeviceRGB()
Gets the DeviceRGB color space.
PDF::ColorSpace::GetComponentRange
PDENumRange GetComponentRange(size_t index) const
Gets the range of values for a specific component in the color space.
PDF::ColorSpace::CreateFromPdfObject
static ColorSpace CreateFromPdfObject(const Object &object)
Creates a color space from the specified PDF object.
PDF::ColorSpace::GetPdfObject
Object GetPdfObject() const
Get the PDF object associated with this color space.
PDF::ColorSpace::GetNumComponents
size_t GetNumComponents() const
Gets the number of components that make up a color space.
PDF::ColorSpace::GetDeviceCMYK
static ColorSpace GetDeviceCMYK()
Gets the DeviceCMYK color space.
PDF::Object
Represents a PDF object.
Definition
object.h:20
content.h
Content API.
PDEColorSpaceFamily
PDEColorSpaceFamily
Specifies a colour space family.
Definition
content.h:390
PDENumRange
Definition
content.h:30