7#ifndef __HDI_CORE_RASTER_ART__
8#define __HDI_CORE_RASTER_ART__
10#if defined(HDI_CORE_AIP_MODE)
37 MaskImageFlag = 1 << 0,
41 InvertBitsFlag = 1 << 1,
45 GraySubtractiveFlag = 1 << 2
53 UnknownColorSpace = 0,
74 SeparationColorSpace = 5,
80 NChannelColorSpace = 6,
85 IndexedColorSpace = 7,
89 ColorSpaceHasAlpha = 0x10,
92 AlphaGrayColorSpace = (GrayColorSpace | ColorSpaceHasAlpha),
95 AlphaRGBColorSpace = (RGBColorSpace | ColorSpaceHasAlpha),
98 AlphaCMYKColorSpace = (CMYKColorSpace | ColorSpaceHasAlpha),
101 AlphaLabColorSpace = (LabColorSpace | ColorSpaceHasAlpha),
104 AlphaSeparationColorSpace = (SeparationColorSpace | ColorSpaceHasAlpha),
107 AlphaNChannelColorSpace = (NChannelColorSpace | ColorSpaceHasAlpha),
110 AlphaIndexedColorSpace = (IndexedColorSpace | ColorSpaceHasAlpha),
112 InvalidColorSpace = 0xFF
192 const int16_t bitsPerPx_,
193 const int32_t rowBytes_,
Handles general art-related functionality.
Definition: hdicoreArt.h:51
Describes a rectangular area on the Illustrator artboard.
Definition: hdicoreArtboardRect.h:28
Allows for raster art manipulation, metadata access, etc.
Definition: hdicoreRasterArt.h:25
Flags
Describes raster art options.
Definition: hdicoreRasterArt.h:31
ColorSpace
Describes raster art color spaces.
Definition: hdicoreRasterArt.h:52
std::string filePath() const
Gets the file path for the raster art.
Record info() const
Retrieves the raster record associated with a raster art object.
void setBounds(const core::ArtboardRect &b_)
Sets the raster image bounding box of a raster art object.
bool overprint() const
Retrieves the overprint status for a raster object.
void setInfo(const Record &rec_)
Associates a raster record with a raster art object.
void setMatrix(const core::TransformMatrix &matrix_)
Sets the transformation matrix for a raster art object.
core::ArtboardRect bounds() const
Retrieves the raster image bounding box of a raster art object.
void clearColorization()
Clears the colorization on a colorized grayscale or bitmap image.
void setOverprint(const bool op_)
Enables or disables overprinting for a raster object.
void setFilePath(const std::string &path_)
Sets the file path for the raster art.
~RasterArt()
Destructs a RasterArt object.
core::TransformMatrix matrix() const
Retrieves the transformation matrix for a raster art object. This is the concatenation of all transfo...
bool colorized(bool &additive__) const
Gets whether a raster object is a colorized grayscale or bitmap image.
Contains a width and height for a rectangular shape.
Definition: hdicoreSize.h:25
Header file for geometric rectangle manipulation on the Illustrator artboard.
Describes more detailed information about raster art.
Definition: hdicoreRasterArt.h:119
Flags flags
Bitwise OR of flags defining additional options for the image.
Definition: hdicoreRasterArt.h:123
virtual ~Record()
Destructs a Record object.
Size dimensions
The width and height of the image data in pixels.
Definition: hdicoreRasterArt.h:128
Record & operator=(const Record &rhs_)
Record assignment operator.
int32_t rowBytes
The number of bytes in a single row of pixel data.
Definition: hdicoreRasterArt.h:148
bool operator!=(const Record &rhs_)
Compares two Record objects for inequality.
bool operator==(const Record &rhs_)
Compares two Record objects for equality.
ColorSpace colorSpace
The color model of the pixel data, which can include an alpha channel.
Definition: hdicoreRasterArt.h:153
Record()
Constructs a new Record object with default values.
Record(const Flags flags_, const Size &dim_, const int16_t bitsPerPx_, const int32_t rowBytes_, const ColorSpace colorSpace_, const ColorSpace origColorSpace_)
Constructs a new Record object from the given values.
int16_t bitsPerPx
The number of bits used to define each pixel in the pixel map.
Definition: hdicoreRasterArt.h:137
Record(const Record &rec_)
Constructs a new Record object from an existing one.
ColorSpace originalColorSpace
For an image that has been converted from one color space to another, the original color space....
Definition: hdicoreRasterArt.h:159