Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Allows for raster art manipulation, metadata access, etc. More...
#include <hdicoreRasterArt.h>
Classes | |
struct | Record |
Describes more detailed information about raster art. More... | |
Public Types | |
enum | Flags { UnknownFlag = 0 , MaskImageFlag = 1 << 0 , InvertBitsFlag = 1 << 1 , GraySubtractiveFlag = 1 << 2 } |
Describes raster art options. | |
enum | ColorSpace { UnknownColorSpace = 0 , GrayColorSpace = 1 , RGBColorSpace = 2 , CMYKColorSpace = 3 , LabColorSpace = 4 , SeparationColorSpace = 5 , NChannelColorSpace = 6 , IndexedColorSpace = 7 , ColorSpaceHasAlpha = 0x10 , AlphaGrayColorSpace = (GrayColorSpace | ColorSpaceHasAlpha) , AlphaRGBColorSpace = (RGBColorSpace | ColorSpaceHasAlpha) , AlphaCMYKColorSpace = (CMYKColorSpace | ColorSpaceHasAlpha) , AlphaLabColorSpace = (LabColorSpace | ColorSpaceHasAlpha) , AlphaSeparationColorSpace = (SeparationColorSpace | ColorSpaceHasAlpha) , AlphaNChannelColorSpace = (NChannelColorSpace | ColorSpaceHasAlpha) , AlphaIndexedColorSpace = (IndexedColorSpace | ColorSpaceHasAlpha) , InvalidColorSpace = 0xFF } |
Describes raster art color spaces. | |
Public Member Functions | |
~RasterArt () | |
Destructs a RasterArt object. | |
Record | info () const |
Retrieves the raster record associated with a raster art object. | |
void | setInfo (const Record &rec_) |
Associates a raster record with a raster art object. | |
std::string | filePath () const |
Gets the file path for the raster art. | |
void | setFilePath (const std::string &path_) |
Sets the file path for the raster art. | |
core::TransformMatrix | matrix () const |
Retrieves the transformation matrix for a raster art object. This is the concatenation of all transforms applied to the image after it was created. It typically contains at least the initial translation and a scale. | |
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 | 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 | setOverprint (const bool op_) |
Enables or disables overprinting for a raster object. | |
bool | colorized (bool &additive__) const |
Gets whether a raster object is a colorized grayscale or bitmap image. | |
void | clearColorization () |
Clears the colorization on a colorized grayscale or bitmap image. | |
Friends | |
class | Art |
Allows for raster art manipulation, metadata access, etc.
hdi::core::RasterArt::~RasterArt | ( | ) |
Destructs a RasterArt object.
core::ArtboardRect hdi::core::RasterArt::bounds | ( | ) | const |
Retrieves the raster image bounding box of a raster art object.
void hdi::core::RasterArt::clearColorization | ( | ) |
Clears the colorization on a colorized grayscale or bitmap image.
bool hdi::core::RasterArt::colorized | ( | bool & | additive__ | ) | const |
Gets whether a raster object is a colorized grayscale or bitmap image.
additive__ | Return-by-reference for whether the raster should be interpreted as additive |
std::string hdi::core::RasterArt::filePath | ( | ) | const |
Gets the file path for the raster art.
Record hdi::core::RasterArt::info | ( | ) | const |
Retrieves the raster record associated with a raster art object.
core::TransformMatrix hdi::core::RasterArt::matrix | ( | ) | const |
Retrieves the transformation matrix for a raster art object. This is the concatenation of all transforms applied to the image after it was created. It typically contains at least the initial translation and a scale.
bool hdi::core::RasterArt::overprint | ( | ) | const |
Retrieves the overprint status for a raster object.
void hdi::core::RasterArt::setBounds | ( | const core::ArtboardRect & | b_ | ) |
Sets the raster image bounding box of a raster art object.
b_ | The new bounding box |
void hdi::core::RasterArt::setFilePath | ( | const std::string & | path_ | ) |
Sets the file path for the raster art.
path_ | New file path, as UTF-8 |
void hdi::core::RasterArt::setInfo | ( | const Record & | rec_ | ) |
Associates a raster record with a raster art object.
rec_ | The new raster record |
void hdi::core::RasterArt::setMatrix | ( | const core::TransformMatrix & | matrix_ | ) |
Sets the transformation matrix for a raster art object.
matrix_ | New transformation matrix |
void hdi::core::RasterArt::setOverprint | ( | const bool | op_ | ) |
Enables or disables overprinting for a raster object.
op_ | True to enable overprint, false to disable it |